Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactor app and plugin generators to use new Thor API

  • Loading branch information...
commit 9cb9713eebd786bd5113470af67b6c81bb57986e 1 parent a5311ee
@drogus drogus authored
View
12 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -177,9 +177,7 @@ def initialize(*args)
end
end
- def create_root
- super
- end
+ public_task :create_root
def create_root_files
build(:readme)
@@ -258,13 +256,7 @@ def finish_template
build(:leftovers)
end
- def apply_rails_template
- super
- end
-
- def bundle_if_dev_or_edge
- super
- end
+ public_task :apply_rails_template, :bundle_if_dev_or_edge
protected
View
12 railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
@@ -115,9 +115,7 @@ def initialize(*args)
super
end
- def create_root
- super
- end
+ public_task :create_root
def create_root_files
build(:readme)
@@ -168,13 +166,7 @@ def finish_template
build(:leftovers)
end
- def apply_rails_template
- super
- end
-
- def bundle_if_dev_or_edge
- super
- end
+ public_task :apply_rails_template, :bundle_if_dev_or_edge
protected
Please sign in to comment.
Something went wrong with that request. Please try again.