Module: ActiveScaffold::Bridges::Cancan::AssociationHelpers

Defined in:
lib/active_scaffold/bridges/cancan/cancan_bridge.rb

Instance Method Summary collapse

Instance Method Details

#association_klass_scoped(association, klass, record) ⇒ Object



36
37
38
# File 'lib/active_scaffold/bridges/cancan/cancan_bridge.rb', line 36

def association_klass_scoped(association, klass, record)
  super.accessible_by(current_ability, :read)
end