spec/support/models/post.rb in active_remote-1.3.0 vs spec/support/models/post.rb in active_remote-1.3.1

- old
+ new

@@ -9,10 +9,13 @@ attribute :guid attribute :name attribute :author_guid belongs_to :author - belongs_to :coauthor, :class_name => ::Author + belongs_to :coauthor, :class_name => '::Author' + belongs_to :bestseller, :class_name => '::Author', :foreign_key => :bestseller_guid has_one :category - has_one :main_category, :class_name => ::Category + has_one :main_category, :class_name => '::Category' + has_one :default_category, :class_name => '::Category', :foreign_key => :template_post_guid + alias_method :bestseller_guid, :author_guid end