Sha256: 10c077b24bc10efe0365d31c33af8a29bf32ed88732c66af650e31748ae621eb

Contents?: true

Size: 556 Bytes

Versions: 7

Compression:

Stored size: 556 Bytes

Contents

require "support/protobuf/category.pb"

##
# Define a generic class that inherits from active remote base
#
class Category < ::ActiveRemote::Base
  service_class ::Generic::Remote::CategoryService

  attribute :guid
  attribute :user_guid
  attribute :chief_editor_guid

  has_many :posts

  has_one :author
  has_one :senior_author, :class_name => "::Author"
  has_one :primary_editor, :class_name => "::Author", :foreign_key => :editor_guid
  has_one :chief_editor, :class_name => "::Author", :scope => :user_guid, :foreign_key => :chief_editor_guid
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_remote-5.0.1 spec/support/models/category.rb
active_remote-5.1.1 spec/support/models/category.rb
active_remote-5.1.0 spec/support/models/category.rb
active_remote-5.0.0 spec/support/models/category.rb
active_remote-5.1.0.rc1 spec/support/models/category.rb
active_remote-5.0.0.rc1 spec/support/models/category.rb
active_remote-5.0.0.pre spec/support/models/category.rb