method
javascript_runtime_gemfile_entry
v4.0.2 -
Show latest stable
- Class:
Rails::Generators::AppBase
javascript_runtime_gemfile_entry()protected
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 241
def javascript_runtime_gemfile_entry
runtime = if defined?(JRUBY_VERSION)
"gem 'therubyrhino'"
else
"# gem 'therubyracer', platforms: :ruby"
end
# See https://github.com/sstephenson/execjs#readme for more supported runtimes #{runtime}
end