Sha256: 6bf64dcc892c61dc126e899e72e423dd406c8700a98bde49f3b33f0e2a53b283
Contents?: true
Size: 612 Bytes
Versions: 11
Compression:
Stored size: 612 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, :string attribute :name, :string attribute :author_guid, :string attribute :user_guid, :string attribute :bestseller_guid, :string 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 validates :name, :presence => true end
Version data entries
11 entries across 11 versions & 1 rubygems