instance method column_for

Ruby on Rails 2.2.3

Last seen in v2.3.18 Private — implementation detail, not part of the public API

Available in: v2.2.3 v2.3.18

Signature

column_for(field)

No documentation comment.

Parameters

field req
Source
# File activerecord/lib/active_record/calculations.rb, line 279
        def column_for(field)
          field_name = field.to_s.split('.').last
          columns.detect { |c| c.name.to_s == field_name }
        end

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

Defined in ActiveRecord::Calculations::ClassMethods

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close