aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:37:12 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:37:12 +0200
commitfa911a74e15ef34bb435812f7d9cf7324253476f (patch)
tree2330a7e9d4640d62078e9a42a4c1f1ed45928326 /activemodel/test/cases/attribute_methods_test.rb
parent301ce2a6d11bc7a016f7ede71e3c6fd9fa0693a3 (diff)
downloadrails-fa911a74e15ef34bb435812f7d9cf7324253476f.tar.gz
rails-fa911a74e15ef34bb435812f7d9cf7324253476f.tar.bz2
rails-fa911a74e15ef34bb435812f7d9cf7324253476f.zip
modernizes hash syntax in activemodel
Diffstat (limited to 'activemodel/test/cases/attribute_methods_test.rb')
-rw-r--r--activemodel/test/cases/attribute_methods_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/attribute_methods_test.rb b/activemodel/test/cases/attribute_methods_test.rb
index 89166f2f1e..676459cc8e 100644
--- a/activemodel/test/cases/attribute_methods_test.rb
+++ b/activemodel/test/cases/attribute_methods_test.rb
@@ -48,7 +48,7 @@ class ModelWithAttributesWithSpaces
include ActiveModel::AttributeMethods
def attributes
- { :'foo bar' => "value of foo bar"}
+ { 'foo bar': "value of foo bar"}
end
private
@@ -67,7 +67,7 @@ class ModelWithWeirdNamesAttributes
end
def attributes
- { :'a?b' => "value of a?b" }
+ { 'a?b': "value of a?b" }
end
private