mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
The new `require_relative` command is much shorter and easier to read
then the previous:
-require File.expand_path('../config/application', __FILE__)
+require_relative 'config/application'
8 lines
185 B
Ruby
8 lines
185 B
Ruby
# Load the rails application
|
|
require_relative 'application'
|
|
|
|
# Initialize the rails application
|
|
Openfoodnetwork::Application.initialize!
|
|
|
|
ActiveRecord::Base.include_root_in_json = true
|