Merge branch 'announcement_fact_check' of github.com:Rulingcom/orbit into announcement_fact_check

This commit is contained in:
Christophe Vilayphiou committed 2012-03-22 20:04:42 +08:00
commit bb14a7736f
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