aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-22 12:28:26 +0200
committerJon Leighton <j@jonathanleighton.com>2012-04-25 15:45:06 +0100
commitaf27c8b0418fb41e51b6d096b0ab0228ff773e37 (patch)
treeb1c7348c26f1459066871e35c0f201be47a7703b /activerecord/test/models
parent618c5fc3c0f4d1d5bee8c8f8e517b6bfacd17dc2 (diff)
downloadrails-af27c8b0418fb41e51b6d096b0ab0228ff773e37.tar.gz
rails-af27c8b0418fb41e51b6d096b0ab0228ff773e37.tar.bz2
rails-af27c8b0418fb41e51b6d096b0ab0228ff773e37.zip
extract deprecated code
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/topic.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb
index 785839be75..0625b8d296 100644
--- a/activerecord/test/models/topic.rb
+++ b/activerecord/test/models/topic.rb
@@ -45,8 +45,8 @@ class Topic < ActiveRecord::Base
2
end
end
- scope :named_extension, -> { { :extend => NamedExtension } }
- scope :multiple_extensions, -> { { :extend => [MultipleExtensionTwo, MultipleExtensionOne] } }
+ scope :named_extension, :extend => NamedExtension
+ scope :multiple_extensions, :extend => [MultipleExtensionTwo, MultipleExtensionOne]
has_many :replies, :dependent => :destroy, :foreign_key => "parent_id"
has_many :replies_with_primary_key, :class_name => "Reply", :dependent => :destroy, :primary_key => "title", :foreign_key => "parent_title"