diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2015-01-30 15:42:51 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2015-01-30 15:42:51 -0800 |
commit | 33030ea7cbfa026b0f9f95a2c5d2dd363a7fe6aa (patch) | |
tree | e61aa66d7f0349e407a07d85e593612cf976e5a7 /railties/lib | |
parent | 3bfdad91de777ae73bd2e6ba2f7827e6d1dd6003 (diff) | |
download | rails-33030ea7cbfa026b0f9f95a2c5d2dd363a7fe6aa.tar.gz rails-33030ea7cbfa026b0f9f95a2c5d2dd363a7fe6aa.tar.bz2 rails-33030ea7cbfa026b0f9f95a2c5d2dd363a7fe6aa.zip |
Fixed a few things from ee9e4c3
Mostly cosmetics, except that `isolate_namespace` should be applied to the last
module in the chain.
Diffstat (limited to 'railties/lib')
4 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec b/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec index 8d56c2b76c..f8ece4fe73 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec +++ b/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec @@ -10,8 +10,8 @@ Gem::Specification.new do |s| s.authors = ["<%= author %>"] s.email = ["<%= email %>"] s.homepage = "TODO" - s.summary = "TODO: Summary of <%= camelized %>." - s.description = "TODO: Description of <%= camelized %>." + s.summary = "TODO: Summary of <%= camelized_modules %>." + s.description = "TODO: Description of <%= camelized_modules %>." s.license = "MIT" s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] diff --git a/railties/lib/rails/generators/rails/plugin/templates/README.rdoc b/railties/lib/rails/generators/rails/plugin/templates/README.rdoc index 301d647731..25983ca5da 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/README.rdoc +++ b/railties/lib/rails/generators/rails/plugin/templates/README.rdoc @@ -1,3 +1,3 @@ -= <%= camelized %> += <%= camelized_modules %> This project rocks and uses MIT-LICENSE.
\ No newline at end of file diff --git a/railties/lib/rails/generators/rails/plugin/templates/Rakefile b/railties/lib/rails/generators/rails/plugin/templates/Rakefile index c338a0bdb1..bda55bae29 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/Rakefile +++ b/railties/lib/rails/generators/rails/plugin/templates/Rakefile @@ -8,7 +8,7 @@ require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' - rdoc.title = '<%= camelized %>' + rdoc.title = '<%= camelized_modules %>' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') diff --git a/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb b/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb index 9be87f5b1c..17afd52177 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb +++ b/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb @@ -1,6 +1,6 @@ <%= wrap_in_modules <<-rb.strip_heredoc class Engine < ::Rails::Engine - #{mountable? ? ' isolate_namespace ' + modules.first : ' '} + #{mountable? ? ' isolate_namespace ' + camelized_modules : ' '} end rb %> |