spec/env.rb in motion-resource-0.1.2 vs spec/env.rb in motion-resource-0.1.3
- old
+ new
@@ -4,10 +4,11 @@
attr_accessor :text
self.member_url = 'posts/:id'
has_many :comments
+ has_many :parent_posts, :class_name => 'Post'
end
class Comment < MotionResource::Base
attr_accessor :post_id, :text
@@ -36,6 +37,11 @@
attr_accessor :created_at
end
class Rectangle < Shape
attribute :size
+end
+
+class Membership < MotionResource::Base
+ self.primary_key = :membership_id
+ attr_accessor :membership_id
end