Module: Rails

Defined in:
lib/rspec_for_generators/rails_spec_helper.rb

Class Method Summary collapse

Class Method Details

.rootObject



24
25
26
27
28
# File 'lib/rspec_for_generators/rails_spec_helper.rb', line 24

def self.root
  # raise StandardError, "You must define a location for Rails.config_root_dir" if !Rails.config_root_dir    
  # @root ||= File.expand_path(File.join(Rails.config_root_dir, '..', 'tmp', 'rails'))
  @root ||= File.join(Rails.application.config.root_dir, 'rails')
end