spec/support/models/author.rb in active_remote-1.7.1 vs spec/support/models/author.rb in active_remote-1.8.0.rc1
- old
+ new
@@ -6,11 +6,17 @@
class Author < ::ActiveRemote::Base
service_class ::Generic::Remote::AuthorService
attribute :guid
attribute :name
+ attribute :user_guid
+ attribute :chief_editor_guid
+ attribute :editor_guid
+ attribute :category_guid
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
+ belongs_to :category
end