Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

backport #8262, require bundler groups to include rake-tasks in engines #8271

Merged
merged 1 commit into from

2 participants

Yves Senn Rafael Mendonça França
Yves Senn
Owner

If you generate a full engine, this will include rake tasks from
your gem under the app namespace. For example if you have a dependency
on rspec-rails in your engine's gemspec. You will get the task app:spec

Closes #8229

Conflicts:

railties/CHANGELOG.md
Yves Senn senny backport #8262, require bundler groups to include rake-tasks in engines
If you generate a full engine, this will include rake tasks from
your gem under the `app` namespace. For example if you have a dependency
on `rspec-rails` in your engine's `gemspec`. You will get the task `app:spec`

Closes #8229

Conflicts:

	railties/CHANGELOG.md
da6951a
Rafael Mendonça França rafaelfranca merged commit db67652 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 19, 2012
  1. Yves Senn

    backport #8262, require bundler groups to include rake-tasks in engines

    senny authored senny committed
    If you generate a full engine, this will include rake tasks from
    your gem under the `app` namespace. For example if you have a dependency
    on `rspec-rails` in your engine's `gemspec`. You will get the task `app:spec`
    
    Closes #8229
    
    Conflicts:
    
    	railties/CHANGELOG.md
This page is out of date. Refresh to see the latest.
5 railties/CHANGELOG.md
View
@@ -1,5 +1,10 @@
## Rails 3.2.9 (Nov 12, 2012) ##
+* Engines with a dummy app include the rake tasks of dependencies in the app namespace. [Backport: #8262]
+ Fix #8229
+
+ *Yves Senn*
+
* Add dummy app Rake tasks when --skip-test-unit and --dummy-path is passed to the plugin generator. [Backport #8139]
Fix #8121
2  railties/lib/rails/generators/rails/plugin_new/templates/rails/application.rb
View
@@ -12,7 +12,7 @@
<%= comment_if :skip_test_unit %>require "rails/test_unit/railtie"
<% end -%>
-Bundler.require
+Bundler.require(*Rails.groups)
require "<%= name %>"
<%= application_definition %>
Something went wrong with that request. Please try again.