Commit ec2c48b8 by Jon Yurek

Stringify the symbol for non-1.9.2

parent 7f523e35
...@@ -54,7 +54,7 @@ module Paperclip ...@@ -54,7 +54,7 @@ module Paperclip
end end
def method_missing(method, *args, &blk) def method_missing(method, *args, &blk)
if method[-1] == "=" if method.to_s[-1] == "="
instance_variable_set("@#{method[0..-2]}", args[0]) instance_variable_set("@#{method[0..-2]}", args[0])
else else
instance_variable_get("@#{method}") instance_variable_get("@#{method}")
......
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