Module: Exvo::Helpers
- Defined in:
- lib/exvo_helpers/helpers.rb,
lib/exvo_helpers/version.rb
Constant Summary collapse
- VERSION =
'0.6.4'
Class Method Summary collapse
-
.env ⇒ Object
by default fall back to production; this way the omniauth-exvo’s gem specs can pass (they depend on this gem and on env, but nor Rails nor Merb is defined there).
- .env=(env) ⇒ Object
Class Method Details
.env ⇒ Object
by default fall back to production; this way the omniauth-exvo’s gem specs can pass (they depend on this gem and on env, but nor Rails nor Merb is defined there)
167 168 169 170 171 172 |
# File 'lib/exvo_helpers/helpers.rb', line 167 def self.env @@env ||= Rails.env if defined?(Rails) @@env ||= Merb.env if defined?(Merb) @@env ||= ENV["RACK_ENV"] if ENV["RACK_ENV"] @@env ||= 'production' end |
.env=(env) ⇒ Object
174 175 176 |
# File 'lib/exvo_helpers/helpers.rb', line 174 def self.env=(env) @@env = env end |