Module: ArPerfToolkit::Base

Defined in:
lib/base.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



7
8
9
10
11
12
13
14
15
16
# File 'lib/base.rb', line 7

def self.included(base) #:nodoc:
  base.extend(ClassMethods)
  base.class_eval do
    class << self
      VALID_FIND_OPTIONS.concat([:pre_sql, :post_sql, :keywords])
      alias_method :construct_finder_sql, :construct_finder_sql_x
      alias_method_chain :construct_finder_sql_with_included_associations, :perf_options unless method_defined?(:construct_finder_sql_with_included_associations_with_options)
    end
  end
end