Module: Useful::RailsExtensions::EnvironmentTests::ClassMethods

Defined in:
lib/useful/rails_extensions/environment_tests.rb

Instance Method Summary collapse

Instance Method Details

#development?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/useful/rails_extensions/environment_tests.rb', line 11

def development? 
  RAILS_ENV == 'development'
end

#production?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/useful/rails_extensions/environment_tests.rb', line 7

def production? 
  RAILS_ENV == 'production'
end