aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/README.md
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2017-06-11 15:59:23 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2017-06-14 12:10:17 +0300
commit6673cf7071094e87d473459452a2d0e4c2ccfebe (patch)
tree926d5c944b8fd71c1fa2db6ddbc5fc397722112e /actioncable/README.md
parent326914dd3a15e04851c9ef4a47edeb3dad2ec381 (diff)
downloadrails-6673cf7071094e87d473459452a2d0e4c2ccfebe.tar.gz
rails-6673cf7071094e87d473459452a2d0e4c2ccfebe.tar.bz2
rails-6673cf7071094e87d473459452a2d0e4c2ccfebe.zip
Use `require_relative` instead of `require` with full path
Diffstat (limited to 'actioncable/README.md')
-rw-r--r--actioncable/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/README.md b/actioncable/README.md
index d14f20d75b..6946dbefb0 100644
--- a/actioncable/README.md
+++ b/actioncable/README.md
@@ -409,7 +409,7 @@ application. The recommended basic setup is as follows:
```ruby
# cable/config.ru
-require ::File.expand_path('../config/environment', __dir__)
+require_relative '../config/environment'
Rails.application.eager_load!
run ActionCable.server