Skip to content
Max Ivak edited this page Feb 19, 2017 · 3 revisions

Rake tasks

! IMPORTANT! Rake tasks are placed in folder tasks/

  • it is defined in Rakefile
require_relative 'config/application'

# load tasks from folder 'tasks'
Dir.glob('tasks/*.rake').each { |r| load r}
Dir.glob('tasks/**/*.rake').each { |r| load r}


Rails.application.load_tasks

Clone this wiki locally