first commit for object auth,will take new_blog for experiment
This commit is contained in:
1 parent
fff918cd78
commit
3a8dbd6af4
11 files changed
+271
-122
No files matched your search
@@ -5,4 +5,5 @@ class Post
|
||||
field :body, :type => String
|
||||
embeds_many :comments
|
||||
validates_presence_of :title, :body
|
||||
has_one :object_auth,as: :obj_authable,dependent: :delete
|
||||
end
|
||||
Reference in new issue
Block a user