Skip to content

Commit

Permalink
Escape method name in include? call
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoAndre committed Sep 26, 2014
1 parent 11a7f4f commit ccc5ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ParseModel/User.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(pf_user_object=nil)
end

def method_missing(method, *args, &block)
if RESERVED_KEYS.include?(method)
if RESERVED_KEYS.include?("#{method}")
@PFUser.send(method)
elsif RESERVED_KEYS.map {|f| "#{f}="}.include?("#{method}")
@PFUser.send(method, args.first)
Expand Down

0 comments on commit ccc5ebc

Please sign in to comment.