Module: Rockstart::Env
- Defined in:
- lib/rockstart/env.rb
Overview
Helpers for analysing the current environment
Class Method Summary collapse
-
.default_session_name ⇒ Object
Default session name used in a Rails App.
-
.postgres_db? ⇒ Boolean
Indicates Postgres is currently in use.
Class Method Details
.default_session_name ⇒ Object
Default session name used in a Rails App
7 8 9 |
# File 'lib/rockstart/env.rb', line 7 def self.default_session_name "_#{Rails.application.class.module_parent.name.underscore}_session" end |
.postgres_db? ⇒ Boolean
Indicates Postgres is currently in use
12 13 14 |
# File 'lib/rockstart/env.rb', line 12 def self.postgres_db? (Rails.configuration.database_configuration[Rails.env]["adapter"] =~ /postgres/) && true end |