Class: Vorpal::Driver::ArelQueryMethods

Inherits:
Module
  • Object
show all
Defined in:
lib/vorpal/driver/postgresql.rb

Defined Under Namespace

Modules: Methods

Instance Method Summary collapse

Constructor Details

#initialize(mapper) ⇒ ArelQueryMethods

Returns a new instance of ArelQueryMethods.



153
154
155
# File 'lib/vorpal/driver/postgresql.rb', line 153

def initialize(mapper)
  @mapper = mapper
end

Instance Method Details

#extended(descendant) ⇒ Object



157
158
159
160
161
# File 'lib/vorpal/driver/postgresql.rb', line 157

def extended(descendant)
  super
  descendant.extend(Methods)
  descendant.vorpal_aggregate_mapper = @mapper
end