module ActiveScaffold::Bridges::Cancan::Actions::Core

Public Instance Methods

beginning_of_chain() click to toggle source

:TODO can this be expanded more ?

Calls superclass method
# File lib/active_scaffold/bridges/cancan/cancan_bridge.rb, line 45
def beginning_of_chain
  super.accessible_by(current_ability)
end
new_model() click to toggle source

fix when ability allow access base on id can [:manage], Client, id: Client.of_employee(user).pluck(:id)

Calls superclass method
# File lib/active_scaffold/bridges/cancan/cancan_bridge.rb, line 51
def new_model
  super.tap { |record| record.id = nil }
end