examples/rails-latex-demo/config/environment.rb in rails-latex-2.1.0 vs examples/rails-latex-demo/config/environment.rb in rails-latex-2.2.0
- old
+ new
@@ -1,5 +1,5 @@
-# Load the rails application
-require File.expand_path('../application', __FILE__)
+# Load the Rails application.
+require_relative 'application'
-# Initialize the rails application
-RailsLatexDemo::Application.initialize!
+# Initialize the Rails application.
+Rails.application.initialize!