aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-05-01 18:31:33 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-05-01 18:31:33 -0700
commitb3a74a14a3d6efa22a07116c4cb26aadc479fb41 (patch)
treef5e7fe3933183c796cf82d2bada32417eb0b65e8 /activemodel/test/cases/attribute_methods_test.rb
parentdd1f36078eff18721eed76d236796c8d26d81e58 (diff)
parenteebb9ddf9ba559a510975c486fe59a4edc9da97d (diff)
downloadrails-b3a74a14a3d6efa22a07116c4cb26aadc479fb41.tar.gz
rails-b3a74a14a3d6efa22a07116c4cb26aadc479fb41.tar.bz2
rails-b3a74a14a3d6efa22a07116c4cb26aadc479fb41.zip
Merge pull request #10408 from patricksrobertson/convert_activemodel_to_new_hash_syntax
Convert ActiveModel to 1.9 hash syntax.
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 d3ec78157c..25eb4860e3 100644
--- a/activemodel/test/cases/attribute_methods_test.rb
+++ b/activemodel/test/cases/attribute_methods_test.rb
@@ -10,7 +10,7 @@ class ModelWithAttributes
end
def attributes
- { :foo => 'value of foo', :baz => 'value of baz' }
+ { foo: 'value of foo', baz: 'value of baz' }
end
private
@@ -80,7 +80,7 @@ class ModelWithRubyKeywordNamedAttributes
include ActiveModel::AttributeMethods
def attributes
- { :begin => 'value of begin', :end => 'value of end' }
+ { begin: 'value of begin', end: 'value of end' }
end
private