Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed plugin_generator test

Template replay needs to happen after bundle.

As we are doing TemplateRecording in apply_rails_template.

here are few commits for changes

8beb42c
9104702
  • Loading branch information...
commit fefa8ae9a172835fb6b8aef7d1dd46d58eecd49f 1 parent 705b720
Arun Agrawal arunagw authored
5 railties/lib/rails/generators/rails/plugin/plugin_generator.rb
View
@@ -185,6 +185,7 @@ def initialize(*args)
end
public_task :set_default_accessors!
+ public_task :apply_rails_template
public_task :create_root
def create_root_files
@@ -241,7 +242,6 @@ def finish_template
build(:leftovers)
end
- public_task :apply_rails_template, :run_bundle
def name
@name ||= begin
@@ -255,6 +255,9 @@ def name
end
end
+ public_task :run_bundle
+ public_task :replay_template
+
protected
def app_templates_dir
Please sign in to comment.
Something went wrong with that request. Please try again.