Flowdock
method

type_for

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ActiveRecord::Calculations
type_for(field, &block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/calculations.rb, line 414
      def type_for(field, &block)
        field_name = field.respond_to?(:name) ? field.name.to_s : field.to_s.split(".").last
        @klass.type_for_attribute(field_name, &block)
      end
Register or log in to add new notes.