Class: Fx::Configuration
- Inherits:
-
Object
- Object
- Fx::Configuration
- Defined in:
- lib/fx/configuration.rb
Overview
F(x)'s configuration object.
Instance Attribute Summary collapse
-
#database ⇒ Object
The F(x) database adapter instance to use when executing SQL.
-
#dump_functions_at_beginning_of_schema ⇒ Object
Prioritizes the order in the schema.rb of functions before other statements in order to make directly schema load work when using functions in statements below, i.e.: default column values.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 |
# File 'lib/fx/configuration.rb', line 18 def initialize @database = Fx::Adapters::Postgres.new @dump_functions_at_beginning_of_schema = false end |
Instance Attribute Details
#database ⇒ Object
The F(x) database adapter instance to use when executing SQL.
Defaults to an instance of Adapters::Postgres
8 9 10 |
# File 'lib/fx/configuration.rb', line 8 def database @database end |
#dump_functions_at_beginning_of_schema ⇒ Object
Prioritizes the order in the schema.rb of functions before other statements in order to make directly schema load work when using functions in statements below, i.e.: default column values.
Defaults to false
16 17 18 |
# File 'lib/fx/configuration.rb', line 16 def dump_functions_at_beginning_of_schema @dump_functions_at_beginning_of_schema end |