Revert "Auto corrected by following Style/ExpandPathArguments"

This reverts commit a5b84403bb.
This commit is contained in:
Brenda Wallace
2018-04-21 10:35:28 +12:00
parent 944af28e3c
commit cdde3994b2
6 changed files with 7 additions and 7 deletions

View File

@@ -3,6 +3,6 @@
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require 'rake/dsl_definition'
require File.expand_path('config/application', __dir__)
require File.expand_path('../config/application', __FILE__)
Growstuff::Application.load_tasks

View File

@@ -1,4 +1,4 @@
require File.expand_path('boot', __dir__)
require File.expand_path('../boot', __FILE__)
require 'rails/all'
require 'openssl'

View File

@@ -1,6 +1,6 @@
require 'rubygems'
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

View File

@@ -1,5 +1,5 @@
# Load the rails application
require File.expand_path('application', __dir__)
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Growstuff::Application.initialize!

View File

@@ -2,6 +2,6 @@
# This command will automatically be run when you run "rails"
# with Rails 3 gems installed from the root of your application.
APP_PATH = File.expand_path('../config/application', __dir__)
require File.expand_path('../config/boot', __dir__)
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'

View File

@@ -17,7 +17,7 @@ SimpleCov.start :rails do
end
require 'spec_helper'
require File.expand_path('../config/environment', __dir__)
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
Rails.application.eager_load!