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(
|
|
|
|
annotations
|
2016-02-07 17:21:40 -05:00
|
|
|
dev
|
2009-09-24 17:01:31 -04:00
|
|
|
framework
|
2015-03-20 18:51:01 -04:00
|
|
|
initializers
|
2009-09-24 17:01:31 -04:00
|
|
|
log
|
|
|
|
middleware
|
|
|
|
misc
|
2015-02-17 01:11:16 -05:00
|
|
|
restart
|
2018-08-19 18:26:25 -04:00
|
|
|
routes
|
2009-09-24 17:01:31 -04:00
|
|
|
tmp
|
2017-01-18 02:45:25 -05:00
|
|
|
yarn
|
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
|