Fact check program completed,Lin checked
This commit is contained in:
1 parent
7efaddf57c
commit
3ba89ecbcf
13 files changed
+144
-130
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user