Fact check program completed,Lin checked

This commit is contained in:
Matt Fu authored and Christophe Vilayphiou committed 2012-03-27 18:54:03 +08:00
1 parent 7efaddf57c
commit 3ba89ecbcf
13 files changed
+144 -130

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
class ObjectAuth < PrototypeAuth
include OrbitCoreLib::ObjectTokenUnility
validates_uniqueness_of :obj_authable_type,:scope => :title #{ |c| }
validates_uniqueness_of :title ,:scope => [:obj_authable_type,:obj_authable_id] #{ |c| }
belongs_to :obj_authable, polymorphic: true
# > - Something.find_with_auth(query)
# > - or Something.find(query).auth