Sha256: 871588f56256295654eb405825c6bb2b97476e8cb721b59b259ac6a65430d0df

Contents?: true

Size: 529 Bytes

Versions: 14

Compression:

Stored size: 529 Bytes

Contents

require 'support/protobuf/post.pb'

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

  attribute :guid
  attribute :name
  attribute :author_guid
  attribute :user_guid
  attribute :bestseller_guid

  belongs_to :author
  belongs_to :coauthor, :class_name => '::Author'
  belongs_to :bestseller, :class_name => '::Author', :foreign_key => :bestseller_guid
  belongs_to :user, :class_name => '::Author', :scope => :user_guid
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
active_remote-2.1.1 spec/support/models/post.rb
active_remote-2.1.0 spec/support/models/post.rb
active_remote-2.1.0.rc2 spec/support/models/post.rb
active_remote-2.1.0.rc1 spec/support/models/post.rb
active_remote-2.1.0.beta2 spec/support/models/post.rb
active_remote-2.1.0.beta1 spec/support/models/post.rb
active_remote-2.0.2 spec/support/models/post.rb
active_remote-2.0.1 spec/support/models/post.rb
active_remote-2.0.0 spec/support/models/post.rb
active_remote-2.0.0.rc2 spec/support/models/post.rb
active_remote-2.0.0.rc1 spec/support/models/post.rb
active_remote-1.8.1 spec/support/models/post.rb
active_remote-1.8.0 spec/support/models/post.rb
active_remote-1.8.0.rc1 spec/support/models/post.rb