spec/support/models/author.rb in active_remote-7.0.0 vs spec/support/models/author.rb in active_remote-7.1.0
- old
+ new
@@ -16,11 +16,11 @@
attribute :birthday, :datetime
attribute :writes_fiction, :boolean
attribute :net_sales, :float
has_many :posts
- has_many :user_posts, :class_name => "::Post", :scope => :user_guid
- has_many :flagged_posts, :class_name => "::Post"
- has_many :bestseller_posts, :class_name => "::Post", :foreign_key => :bestseller_guid
+ has_many :user_posts, class_name: "::Post", scope: :user_guid
+ has_many :flagged_posts, class_name: "::Post"
+ has_many :bestseller_posts, class_name: "::Post", foreign_key: :bestseller_guid
belongs_to :category
end