Method: Tiun::Policy#scope
- Defined in:
- lib/tiun/policy.rb
#scope ⇒ Object
22 23 24 |
# File 'lib/tiun/policy.rb', line 22 def scope defined?(Pundit) && Pundit.policy_scope!(user, record.class) || ActiveRecord::Base end |
22 23 24 |
# File 'lib/tiun/policy.rb', line 22 def scope defined?(Pundit) && Pundit.policy_scope!(user, record.class) || ActiveRecord::Base end |