Class: BurdenWeb::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/burden_web/application_controller.rb

Direct Known Subclasses

RunsController, TasksController

Instance Method Summary collapse

Instance Method Details

#rake_tasksObject



3
4
5
6
7
8
9
10
# File 'app/controllers/burden_web/application_controller.rb', line 3

def rake_tasks
  @rake_tasks ||= begin
    Rails.application.load_tasks
    Rake.application.tasks.keep_if do |task|
      task.name =~ /^[a-z0-9_:]+$/
    end
  end
end