Permalink
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...
arunagw committed Nov 7, 2013
1 parent 705b720 commit fefa8ae9a172835fb6b8aef7d1dd46d58eecd49f
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/lib/rails/generators/rails/plugin/plugin_generator.rb
@@ -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

0 comments on commit fefa8ae

Please sign in to comment.