Module: ExpressAdmin::Commands::InstanceMethods
- Defined in:
- lib/express_admin/commands.rb
Instance Method Summary collapse
- #available_commands ⇒ Object
-
#unavailable_commands ⇒ Object
If not using, AASM, override this for disallowing commands.
Instance Method Details
#available_commands ⇒ Object
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_commands ⇒ Object
If not using, AASM, override this for disallowing commands
29 30 31 |
# File 'lib/express_admin/commands.rb', line 29 def unavailable_commands [] end |