Rails is a module

This commit is contained in:
Jonne Haß 2014-12-04 14:52:14 +01:00
parent 339111867e
commit 50a3f03bfc

View file

@ -15,7 +15,7 @@ require 'active_support/core_ext/class/attribute_accessors'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/module/delegation'
class Rails
module Rails
def self.root
@@root ||= Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), "..")))
end