Module: PgAggregates
- Defined in:
- lib/pg_aggregates.rb,
lib/pg_aggregates/railtie.rb,
lib/pg_aggregates/version.rb,
lib/pg_aggregates/file_version.rb,
lib/pg_aggregates/schema_dumper.rb,
lib/pg_aggregates/command_recorder.rb,
lib/pg_aggregates/schema_statements.rb,
lib/pg_aggregates/aggregate_definition.rb
Defined Under Namespace
Modules: CommandRecorder, SchemaDumper, SchemaStatements
Classes: AggregateDefinition, Error, FileVersion, Railtie
Constant Summary
collapse
- VERSION =
"0.2.3"
Class Method Summary
collapse
Class Method Details
.database ⇒ Object
33
34
35
|
# File 'lib/pg_aggregates.rb', line 33
def database
ActiveRecord::Base.connection
end
|
.load ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/pg_aggregates.rb', line 17
def load
ActiveRecord::ConnectionAdapters::AbstractAdapter.include PgAggregates::SchemaStatements
ActiveRecord::Migration::CommandRecorder.include PgAggregates::CommandRecorder
ActiveRecord::SchemaDumper.prepend PgAggregates::SchemaDumper
end
|