Sha256: 27560c4b7db4fbcd15c68d3fa8848ccf50ad1cc27a37d2aafe0031b722d1bd21

Contents?: true

Size: 583 Bytes

Versions: 11

Compression:

Stored size: 583 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, :string
  attribute :user_guid, :string
  attribute :chief_editor_guid, :string

  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

11 entries across 11 versions & 1 rubygems

Version Path
active_remote-6.0.3 spec/support/models/category.rb
active_remote-6.1.2 spec/support/models/category.rb
active_remote-7.0.0 spec/support/models/category.rb
active_remote-6.1.1 spec/support/models/category.rb
active_remote-6.1.0 spec/support/models/category.rb
active_remote-6.0.2 spec/support/models/category.rb
active_remote-6.0.1 spec/support/models/category.rb
active_remote-6.0.0.beta spec/support/models/category.rb
active_remote-5.2.0 spec/support/models/category.rb
active_remote-5.2.0.beta spec/support/models/category.rb
active_remote-5.2.0.alpha spec/support/models/category.rb