Sha256: aee04f3dc06ba8e1ef58a5f8cdf909cc5213399a126097ec7db0365f9a3eda66

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

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

  belongs_to :author
  belongs_to :coauthor, :class_name => ::Author
  has_one :category
  has_one :main_category, :class_name => ::Category

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_remote-1.3.0 spec/support/models/post.rb