Class: RooOnRails::Config
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- RooOnRails::Config
- Defined in:
- lib/roo_on_rails/config.rb
Class Method Summary collapse
- .google_auth_controller ⇒ Object
- .google_auth_enabled? ⇒ Boolean
- .google_auth_path_prefix ⇒ Object
- .load ⇒ Object
- .sidekiq_enabled? ⇒ Boolean
Class Method Details
.google_auth_controller ⇒ Object
24 25 26 |
# File 'lib/roo_on_rails/config.rb', line 24 def google_auth_controller ENV.fetch('GOOGLE_AUTH_CONTROLLER') end |
.google_auth_enabled? ⇒ Boolean
16 17 18 |
# File 'lib/roo_on_rails/config.rb', line 16 def google_auth_enabled? enabled? 'GOOGLE_AUTH_ENABLED', default: false end |
.google_auth_path_prefix ⇒ Object
20 21 22 |
# File 'lib/roo_on_rails/config.rb', line 20 def google_auth_path_prefix ENV.fetch('GOOGLE_AUTH_PATH_PREFIX') end |
.load ⇒ Object
7 8 9 10 |
# File 'lib/roo_on_rails/config.rb', line 7 def load path = Pathname '.roo_on_rails.yml' path.exist? ? super(path) : new end |
.sidekiq_enabled? ⇒ Boolean
12 13 14 |
# File 'lib/roo_on_rails/config.rb', line 12 def sidekiq_enabled? enabled? 'SIDEKIQ_ENABLED' end |