aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/contact.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:37:57 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:37:57 +0200
commitd22e522179c1c90e658c3ed0e9b972ec62306209 (patch)
tree3ccbdff567b79a128ad61adcbb4f2950ca9b696e /activerecord/test/models/contact.rb
parentfa911a74e15ef34bb435812f7d9cf7324253476f (diff)
downloadrails-d22e522179c1c90e658c3ed0e9b972ec62306209.tar.gz
rails-d22e522179c1c90e658c3ed0e9b972ec62306209.tar.bz2
rails-d22e522179c1c90e658c3ed0e9b972ec62306209.zip
modernizes hash syntax in activerecord
Diffstat (limited to 'activerecord/test/models/contact.rb')
-rw-r--r--activerecord/test/models/contact.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/contact.rb b/activerecord/test/models/contact.rb
index 15e3832204..47bbbbfd8b 100644
--- a/activerecord/test/models/contact.rb
+++ b/activerecord/test/models/contact.rb
@@ -1,7 +1,7 @@
module ContactFakeColumns
def self.extended(base)
base.class_eval do
- establish_connection(:adapter => "fake")
+ establish_connection(adapter: "fake")
connection.data_sources = [table_name]
connection.primary_keys = {
@@ -19,7 +19,7 @@ module ContactFakeColumns
serialize :preferences
- belongs_to :alternative, :class_name => "Contact"
+ belongs_to :alternative, class_name: "Contact"
end
end