Module: Lockdown::Frameworks::Rails::Controller
- Included in:
- System
- Defined in:
- lib/lockdown/frameworks/rails/controller.rb
Defined Under Namespace
Modules: Lock
Instance Method Summary collapse
Instance Method Details
#available_actions(klass) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/lockdown/frameworks/rails/controller.rb', line 6 def available_actions(klass) if klass.respond_to?(:action_methods) klass.action_methods else klass.public_instance_methods - klass.hidden_actions end end |
#controller_name(klass) ⇒ Object
14 15 16 |
# File 'lib/lockdown/frameworks/rails/controller.rb', line 14 def controller_name(klass) klass.controller_name end |