Class: RailsPgExtras::Configuration
- Inherits:
-
Object
- Object
- RailsPgExtras::Configuration
- Defined in:
- lib/rails_pg_extras/configuration.rb
Constant Summary collapse
- DEFAULT_CONFIG =
{ enabled_web_actions: Web::ACTIONS - [:kill_all], public_dashboard: ENV["RAILS_PG_EXTRAS_PUBLIC_DASHBOARD"] == "true" }
Instance Attribute Summary collapse
-
#enabled_web_actions ⇒ Object
Returns the value of attribute enabled_web_actions.
-
#public_dashboard ⇒ Object
Returns the value of attribute public_dashboard.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(attrs) ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 |
# File 'lib/rails_pg_extras/configuration.rb', line 12 def initialize(attrs) self.enabled_web_actions = attrs[:enabled_web_actions] self.public_dashboard = attrs[:public_dashboard] end |
Instance Attribute Details
#enabled_web_actions ⇒ Object
Returns the value of attribute enabled_web_actions.
9 10 11 |
# File 'lib/rails_pg_extras/configuration.rb', line 9 def enabled_web_actions @enabled_web_actions end |
#public_dashboard ⇒ Object
Returns the value of attribute public_dashboard.
10 11 12 |
# File 'lib/rails_pg_extras/configuration.rb', line 10 def public_dashboard @public_dashboard end |