summaryrefslogtreecommitdiff
path: root/lib/hashie/dash.rb
diff options
context:
space:
mode:
authorDouglas Willcocks <douglas@d-tw.org>2015-01-04 16:39:08 +0100
committerDouglas Willcocks <douglas@d-tw.org>2015-01-13 21:31:04 +0100
commit44d4babe37be2d0f035e60269bb84c9d15013297 (patch)
tree8854cca633dc40b389cc090e34055d4c53a688d5 /lib/hashie/dash.rb
parent700aed2a5ce3cc38889835e7901355112b269a74 (diff)
downloadhashie-44d4babe37be2d0f035e60269bb84c9d15013297.tar.gz
Fix bug where Dash changes argument to `property`
Diffstat (limited to 'lib/hashie/dash.rb')
-rw-r--r--lib/hashie/dash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashie/dash.rb b/lib/hashie/dash.rb
index 22f6bc8..849629f 100644
--- a/lib/hashie/dash.rb
+++ b/lib/hashie/dash.rb
@@ -44,7 +44,7 @@ module Hashie
unless instance_methods.map(&:to_s).include?("#{property_name}=")
define_method(property_name) { |&block| self.[](property_name, &block) }
- property_assignment = property_name.to_s.concat('=').to_sym
+ property_assignment = "#{property_name}=".to_sym
define_method(property_assignment) { |value| self.[]=(property_name, value) }
end