summaryrefslogtreecommitdiff
path: root/lib/hashie/extensions/mash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hashie/extensions/mash')
-rw-r--r--lib/hashie/extensions/mash/safe_assignment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashie/extensions/mash/safe_assignment.rb b/lib/hashie/extensions/mash/safe_assignment.rb
index 2afedc5..4fa58c7 100644
--- a/lib/hashie/extensions/mash/safe_assignment.rb
+++ b/lib/hashie/extensions/mash/safe_assignment.rb
@@ -3,7 +3,7 @@ module Hashie
module Mash
module SafeAssignment
def assign_property(name, value)
- fail ArgumentError, "The property #{name} clashes with an existing method." if methods.include?(name)
+ fail ArgumentError, "The property #{name} clashes with an existing method." if methods.include?(name.to_sym)
self[name] = value
end