2017-08-14 13:08:09 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-06 13:15:47 -04:00
|
|
|
require "rake"
|
2014-12-02 16:28:09 -05:00
|
|
|
|
2013-05-18 09:52:46 -04:00
|
|
|
# Load Rails Rakefile extensions
|
2009-09-24 17:01:31 -04:00
|
|
|
%w(
|
|
|
|
framework
|
|
|
|
log
|
|
|
|
middleware
|
|
|
|
misc
|
2015-02-17 01:11:16 -05:00
|
|
|
restart
|
2009-09-24 17:01:31 -04:00
|
|
|
tmp
|
2017-01-18 02:45:25 -05:00
|
|
|
yarn
|
2019-04-22 21:03:11 -04:00
|
|
|
zeitwerk
|
2015-07-24 19:51:10 -04:00
|
|
|
).tap { |arr|
|
2016-08-06 13:15:47 -04:00
|
|
|
arr << "statistics" if Rake.application.current_scope.empty?
|
2015-07-24 19:51:10 -04:00
|
|
|
}.each do |task|
|
2009-09-24 17:01:31 -04:00
|
|
|
load "rails/tasks/#{task}.rake"
|
|
|
|
end
|