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