Class: Boilerman::ChecksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/boilerman/checks_controller.rb

Instance Method Summary collapse

Instance Method Details

#csrfObject



19
20
# File 'app/controllers/boilerman/checks_controller.rb', line 19

def csrf
end

#indexObject



5
6
7
# File 'app/controllers/boilerman/checks_controller.rb', line 5

def index
  @checks = []
end

#inheritance_checkObject



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