method
rails_gemfile_entry
v3.1.0 -
Show latest stable
- Class:
Rails::Generators::AppBase
rails_gemfile_entry()protected
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 137
def rails_gemfile_entry
if options.dev?
gem 'rails', :path => '#{Rails::Generators::RAILS_DEV_PATH}'.strip_heredoc
elsif options.edge?
gem 'rails', :git => 'git://github.com/rails/rails.git'.strip_heredoc
else
gem 'rails', '#{Rails::VERSION::STRING}' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git'.strip_heredoc
end
end