Commit 30c2be58 by jyurek

Removed symbol pluralization

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@398 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
parent 17a150f2
......@@ -127,7 +127,7 @@ module Paperclip
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
......
......@@ -23,14 +23,6 @@ class String
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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment