aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/tag.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/tag.rb')
-rw-r--r--activerecord/test/models/tag.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/models/tag.rb b/activerecord/test/models/tag.rb
index b48b9a2155..c907aea10f 100644
--- a/activerecord/test/models/tag.rb
+++ b/activerecord/test/models/tag.rb
@@ -1,13 +1,13 @@
class Tag < ActiveRecord::Base
has_many :taggings
- has_many :taggables, :through => :taggings
+ has_many :taggables, through: :taggings
has_one :tagging
- has_many :tagged_posts, :through => :taggings, :source => 'taggable', :source_type => 'Post'
+ has_many :tagged_posts, through: :taggings, source: "taggable", source_type: "Post"
end
class OrderedTag < Tag
self.table_name = "tags"
- has_many :taggings, -> { order('taggings.id DESC') }, foreign_key: 'tag_id'
+ has_many :taggings, -> { order("taggings.id DESC") }, foreign_key: "tag_id"
end