Class: DatabaseDocumenter::Configuration
- Inherits:
-
Object
- Object
- DatabaseDocumenter::Configuration
- Defined in:
- lib/database_documenter/configuration.rb
Instance Attribute Summary collapse
-
#database_configuration ⇒ Object
Returns the value of attribute database_configuration.
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#hidden_values_columns ⇒ Object
Returns the value of attribute hidden_values_columns.
-
#skipped_modules ⇒ Object
Returns the value of attribute skipped_modules.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/database_documenter/configuration.rb', line 5 def initialize @skipped_modules = [] @hidden_values_columns = %w[encrypted_password current_sign_in_ip remote_address last_sign_in_ip] @database_configuration = Rails.application.config.database_configuration[Rails.env] @footer = '' end |
Instance Attribute Details
#database_configuration ⇒ Object
Returns the value of attribute database_configuration.
3 4 5 |
# File 'lib/database_documenter/configuration.rb', line 3 def database_configuration @database_configuration end |
#footer ⇒ Object
Returns the value of attribute footer.
3 4 5 |
# File 'lib/database_documenter/configuration.rb', line 3 def @footer end |
#hidden_values_columns ⇒ Object
Returns the value of attribute hidden_values_columns.
3 4 5 |
# File 'lib/database_documenter/configuration.rb', line 3 def hidden_values_columns @hidden_values_columns end |
#skipped_modules ⇒ Object
Returns the value of attribute skipped_modules.
3 4 5 |
# File 'lib/database_documenter/configuration.rb', line 3 def skipped_modules @skipped_modules end |