first commit for object auth,will take new_blog for experiment

This commit is contained in:
Matthew Kaito Juyuan Fu authored and Christophe Vilayphiou committed 2012-02-15 00:34:21 +08:00
1 parent c3e57f8bde
commit 3ed9b81df9
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