aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-02-10 00:18:25 +0100
committerXavier Noria <fxn@hashref.com>2016-02-10 00:28:50 +0100
commitde6ad5665d2679944a9ee9407826ba88395a1003 (patch)
treead381fa08493b55d485fcd68d97fcdd7018074b3 /railties/lib/rails/generators/app_base.rb
parentb5eb2423b6e431ba53e3836d58449e7e810096b4 (diff)
downloadrails-de6ad5665d2679944a9ee9407826ba88395a1003.tar.gz
rails-de6ad5665d2679944a9ee9407826ba88395a1003.tar.bz2
rails-de6ad5665d2679944a9ee9407826ba88395a1003.zip
enables the evented monitor in new applications
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r--railties/lib/rails/generators/app_base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index 9b1e16a7a3..8f8c2ec9e1 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -390,6 +390,10 @@ module Rails
!options[:skip_spring] && !options.dev? && Process.respond_to?(:fork) && !RUBY_PLATFORM.include?("cygwin")
end
+ def os_supports_listen_out_of_the_box?
+ RbConfig::CONFIG['host_os'] =~ /darwin|linux/
+ end
+
def run_bundle
bundle_command('install') if bundle_install?
end