1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Simplify path setup

This commit is contained in:
Carlos Antonio da Silva 2014-07-30 23:09:17 -03:00
parent 9023e3b773
commit bfc2b23128

View file

@ -7,7 +7,7 @@ module Rails
class << self
remove_possible_method :root
def root
@root ||= File.expand_path(File.join(File.dirname(__FILE__), '..', 'fixtures'))
@root ||= File.expand_path('../../fixtures', __FILE__)
end
end
end