aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-06-21 11:18:50 -0300
committerJosé Valim <jose.valim@gmail.com>2011-06-21 11:24:06 -0300
commit5a26b886455a9fda846109dbcf4595b107e392bc (patch)
treefd9ada2b21b433ab7901dc51dc30c409bb98f37c /railties/lib/rails/generators/app_base.rb
parent354709fe89a4cb9b26a6c19d377408bab2a07590 (diff)
downloadrails-5a26b886455a9fda846109dbcf4595b107e392bc.tar.gz
rails-5a26b886455a9fda846109dbcf4595b107e392bc.tar.bz2
rails-5a26b886455a9fda846109dbcf4595b107e392bc.zip
Create an :assets group in the Gemfile.
This group is required by default only on development and test (you can change it on config/application.rb). `rake assets:precompile` will automatically add the assets group to Rails.groups (and consequently Bundler.require) and should work transparently.
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r--railties/lib/rails/generators/app_base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index 1196e2b7eb..bbf0447985 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -164,7 +164,7 @@ module Rails
end
end
- def gem_for_ruby_debugger
+ def ruby_debugger_gemfile_entry
if RUBY_VERSION < "1.9"
"gem 'ruby-debug'"
else
@@ -172,7 +172,7 @@ module Rails
end
end
- def gem_for_turn
+ def turn_gemfile_entry
unless RUBY_VERSION < "1.9.2" || options[:skip_test_unit]
<<-GEMFILE.strip_heredoc
group :test do
@@ -183,7 +183,7 @@ module Rails
end
end
- def gem_for_javascript
+ def javascript_gemfile_entry
"gem '#{options[:javascript]}-rails'" unless options[:skip_javascript]
end