Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed symbol pluralization

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@398 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
commit 30c2be58004f515c1a75413ae224c5f55c433643 1 parent 17a150f
jyurek authored
Showing with 1 addition and 9 deletions.
  1. +1 −1  lib/paperclip/attachment.rb
  2. +0 −8 test/helper.rb
2  lib/paperclip/attachment.rb
View
@@ -127,7 +127,7 @@ def self.interpolations
File.extname(attachment.original_filename).gsub(/^\.+/, "")
end,
:id => lambda{|attachment,style| attachment.instance.id },
- :attachment => lambda{|attachment,style| attachment.name.pluralize },
+ :attachment => lambda{|attachment,style| attachment.name.to_s.pluralize },
:style => lambda{|attachment,style| style || attachment.default_style },
}
end
8 test/helper.rb
View
@@ -23,14 +23,6 @@ def pluralize
end
end
-class Symbol
- unless methods.include? :pluralize
- def pluralize
- "#{self}s"
- end
- end
-end
-
FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures")
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
Please sign in to comment.
Something went wrong with that request. Please try again.