Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 501553d

Browse files
committed
Inline the ruby_rake_task helper, which is no longer available in Rails 4
1 parent 8203f0a commit 501553d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/tasks/requirejs-rails_tasks.rake

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ namespace :requirejs do
1717
# and/or no explicit environment - we have to reinvoke rake to
1818
# execute this task.
1919
def invoke_or_reboot_rake_task(task)
20-
if ENV['RAILS_GROUPS'].to_s.empty? || ENV['RAILS_ENV'].to_s.empty?
21-
ruby_rake_task task
22-
else
23-
Rake::Task[task].invoke
24-
end
20+
Rake::Task[task].invoke
2521
end
2622

2723
requirejs = ActiveSupport::OrderedOptions.new
@@ -82,7 +78,7 @@ EOM
8278
# We depend on test_node here so we'll fail early and hard if node
8379
# isn't available.
8480
task :external => ["requirejs:test_node"] do
85-
ruby_rake_task "requirejs:precompile:all"
81+
Rake::Task["requirejs:precompile:all"].invoke
8682
end
8783

8884
# copy all assets to tmp/assets

0 commit comments

Comments
 (0)