first commit for object auth,will take new_blog for experiment

This commit is contained in:
Matthew Kaito Juyuan Fu committed 2012-02-07 16:16:48 +08:00
1 parent fff918cd78
commit 3a8dbd6af4
11 files changed
+271 -122

No files matched your search

+1
View File
@@ -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