Class: ExtremeAas::ExtremeSimpleAction
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ExtremeAas::ExtremeSimpleAction
- Includes:
- ExtremeActionAbstract
- Defined in:
- app/models/extreme_aas/extreme_simple_action.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.find_action(context) ⇒ Object
7 8 9 |
# File 'app/models/extreme_aas/extreme_simple_action.rb', line 7 def self.find_action(context) where(:action_name => context[:action_name], :controller_name => context[:controller_name]).first end |
Instance Method Details
#has_permission?(profile) ⇒ Boolean
11 12 13 |
# File 'app/models/extreme_aas/extreme_simple_action.rb', line 11 def profile return !super_action.grants.where(:extreme_profile_id => profile.id).empty? end |
#volatile? ⇒ Boolean
15 16 17 |
# File 'app/models/extreme_aas/extreme_simple_action.rb', line 15 def volatile? self.volatile == true end |