Skip to content

Commit

Permalink
use __dir__ to load the application in environment.rb
Browse files Browse the repository at this point in the history
Stuff I see in passing while I am doing a walkthrough.

See rationale in 5b8738c.
  • Loading branch information
fxn committed Mar 6, 2016
1 parent 5d77e3d commit 5a06bed
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,5 +1,5 @@
# Load the Rails application.
require File.expand_path('../application', __FILE__)
require File.expand_path('application', __dir__)

# Initialize the Rails application.
Rails.application.initialize!

0 comments on commit 5a06bed

Please sign in to comment.