mirror of
https://github.com/github/rails.git
synced 2026-01-25 22:38:33 -05:00
Memoize the require and construction of the StringInquirer
This commit is contained in:
@@ -49,8 +49,10 @@ module Rails
|
||||
end
|
||||
|
||||
def env
|
||||
require 'active_support/string_inquirer'
|
||||
ActiveSupport::StringInquirer.new(RAILS_ENV)
|
||||
@_env ||= begin
|
||||
require 'active_support/string_inquirer'
|
||||
ActiveSupport::StringInquirer.new(RAILS_ENV)
|
||||
end
|
||||
end
|
||||
|
||||
def cache
|
||||
|
||||
Reference in New Issue
Block a user