Class: PyrRules::EventsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PyrRules::EventsController
- Defined in:
- app/controllers/pyr_rules/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 6 7 |
# File 'app/controllers/pyr_rules/events_controller.rb', line 2 def index @events_tree = PyrRules::RulesConfig.events_tree respond_to do |format| format.html end end |
#show ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/pyr_rules/events_controller.rb', line 9 def show @event = PyrRules::RulesConfig.event params[:id] @pyr_rules_rules = PyrRules::Rule.where(event: @event[:name]).all respond_to do |format| format.html end end |