Sha256: e1518e5f3aafe8475b43e504644a05dd688ec5690cbf9f1088cac7116c924f59

Contents?: true

Size: 590 Bytes

Versions: 38

Compression:

Stored size: 590 Bytes

Contents

require 'support/protobuf/author.pb'

##
# Define a generic class that inherits from active remote base
#
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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
active_remote-3.3.3 spec/support/models/author.rb
active_remote-3.3.2 spec/support/models/author.rb
active_remote-3.3.1 spec/support/models/author.rb
active_remote-3.3.0 spec/support/models/author.rb
active_remote-3.2.2 spec/support/models/author.rb
active_remote-3.2.1 spec/support/models/author.rb
active_remote-3.2.0 spec/support/models/author.rb
active_remote-3.2.0.pre spec/support/models/author.rb
active_remote-3.1.3 spec/support/models/author.rb
active_remote-3.1.2 spec/support/models/author.rb
active_remote-3.1.2.pre spec/support/models/author.rb
active_remote-3.1.1 spec/support/models/author.rb
active_remote-3.1.0 spec/support/models/author.rb
active_remote-3.0.0 spec/support/models/author.rb
active_remote-3.0.0.pre1 spec/support/models/author.rb
active_remote-2.4.0 spec/support/models/author.rb
active_remote-2.3.5 spec/support/models/author.rb
active_remote-2.3.4 spec/support/models/author.rb
active_remote-2.3.3 spec/support/models/author.rb
active_remote-2.3.3.pre spec/support/models/author.rb