Fact check program completed,Lin checked

This commit is contained in:
Matt Fu committed 2012-03-22 14:33:59 +08:00
1 parent 7cc075e124
commit 34a4e47057
14 files changed
+91 -66

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