Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Stringify the symbol for non-1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Sep 30, 2011
1 parent 7f523e3 commit ec2c48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/options.rb
Expand Up @@ -54,7 +54,7 @@ def initialize(attachment, hash)
end

def method_missing(method, *args, &blk)
if method[-1] == "="
if method.to_s[-1] == "="
instance_variable_set("@#{method[0..-2]}", args[0])
else
instance_variable_get("@#{method}")
Expand Down

0 comments on commit ec2c48b

Please sign in to comment.