class method self.extended

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

self.extended(base)

No documentation comment.

Parameters

base req
Source
# File activerecord/lib/active_record/explain.rb, line 5
    def self.extended(base)
      base.class_eval do
        # If a query takes longer than these many seconds we log its query plan
        # automatically. nil disables this feature.
        class_attribute :auto_explain_threshold_in_seconds, :instance_writer => false
        self.auto_explain_threshold_in_seconds = nil
      end
    end

Defined in activerecord/lib/active_record/explain.rb line 5 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Explain

Type at least 2 characters to search.

↑↓ navigate · open · esc close