Skip to content

Instantly share code, notes, and snippets.

@mischa
Created December 9, 2008 08:16
Show Gist options
  • Select an option

  • Save mischa/33840 to your computer and use it in GitHub Desktop.

Select an option

Save mischa/33840 to your computer and use it in GitHub Desktop.
def env
@_env ||= begin
require 'active_support/string_inquirer'
ActiveSupport::StringInquirer.new(RAILS_ENV)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment