mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-04 07:04:19 -04:00
Revert "Auto corrected by following Style/ExpandPathArguments"
This reverts commit a5b84403bb.
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require File.expand_path('boot', __dir__)
|
||||
require File.expand_path('../boot', __FILE__)
|
||||
|
||||
require 'rails/all'
|
||||
require 'openssl'
|
||||
|
||||
@@ -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'])
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user