Class: Boilerman::ChecksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Boilerman::ChecksController
- Defined in:
- app/controllers/boilerman/checks_controller.rb
Instance Method Summary collapse
Instance Method Details
#csrf ⇒ Object
19 20 |
# File 'app/controllers/boilerman/checks_controller.rb', line 19 def csrf end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/boilerman/checks_controller.rb', line 5 def index @checks = [] end |
#inheritance_check ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/boilerman/checks_controller.rb', line 9 def inheritance_check @inheritance_controller = params[:inheritance_controller] || "ApplicationController" begin @controllers = Boilerman::Checks.inheritance_check @inheritance_controller rescue NameError # The user has passed in a class that does not exist in the application. @error = "#{ @inheritance_controller } is not a class that exists in the application" end end |