Class: RailsDbViews::Configuration
- Inherits:
-
Object
- Object
- RailsDbViews::Configuration
- Defined in:
- lib/rails_db_views/configuration.rb
Instance Attribute Summary collapse
-
#functions_extension ⇒ Object
Returns the value of attribute functions_extension.
-
#functions_paths ⇒ Object
Returns the value of attribute functions_paths.
-
#views_extension ⇒ Object
Returns the value of attribute views_extension.
-
#views_paths ⇒ Object
Returns the value of attribute views_paths.
Instance Method Summary collapse
- #[](*args) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/rails_db_views/configuration.rb', line 5 def initialize @views_paths = %w(db/views) @views_extension = "*.sql" @functions_paths = %w(db/functions) @functions_extension = "*.sql" end |
Instance Attribute Details
#functions_extension ⇒ Object
Returns the value of attribute functions_extension.
3 4 5 |
# File 'lib/rails_db_views/configuration.rb', line 3 def functions_extension @functions_extension end |
#functions_paths ⇒ Object
Returns the value of attribute functions_paths.
3 4 5 |
# File 'lib/rails_db_views/configuration.rb', line 3 def functions_paths @functions_paths end |
#views_extension ⇒ Object
Returns the value of attribute views_extension.
2 3 4 |
# File 'lib/rails_db_views/configuration.rb', line 2 def views_extension @views_extension end |
#views_paths ⇒ Object
Returns the value of attribute views_paths.
2 3 4 |
# File 'lib/rails_db_views/configuration.rb', line 2 def views_paths @views_paths end |
Instance Method Details
#[](*args) ⇒ Object
13 14 15 |
# File 'lib/rails_db_views/configuration.rb', line 13 def [] *args raise "rails_db_view has changed! Please use the methods views_paths/views_extension instead of hash notation" end |