Module: ExpressAdmin::Commands::InstanceMethods

Defined in:
lib/express_admin/commands.rb

Instance Method Summary collapse

Instance Method Details

#available_commandsObject



33
34
35
36
37
38
39
# File 'lib/express_admin/commands.rb', line 33

def available_commands
  if respond_to?(:aasm)
    command_names & aasm_event_triggers
  else
    command_names - unavailable_commands
  end
end

#unavailable_commandsObject

If not using, AASM, override this for disallowing commands



29
30
31
# File 'lib/express_admin/commands.rb', line 29

def unavailable_commands
  []
end