Sha256: 11dcd4f4ec5283e6bafa4bc5c6df45656a6ad069929efb106f75aee5efc28cc6

Contents?: true

Size: 557 Bytes

Versions: 38

Compression:

Stored size: 557 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

38 entries across 38 versions & 1 rubygems

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