change view and action for announcement ,Lin checked. Also add validation for object_auth make sure for each object,the object will be unique for each action.
This commit is contained in:
1 parent
8932615f05
commit
cceb785a8d
16 files changed
+58
-55
No files matched your search
@@ -1,5 +1,6 @@
|
||||
class ObjectAuth < PrototypeAuth
|
||||
include OrbitCoreLib::ObjectTokenUnility
|
||||
validates_uniqueness_of :obj_authable_type,:scope => :title #{ |c| }
|
||||
belongs_to :obj_authable, polymorphic: true
|
||||
# > - Something.find_with_auth(query)
|
||||
# > - or Something.find(query).auth
|
||||
|
||||
Reference in new issue
Block a user