instance method attribute_cast_code

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5 Private — implementation detail, not part of the public API

Signature

attribute_cast_code(attr_name)

No documentation comment.

Parameters

attr_name req
Source
# File activerecord/lib/active_record/attribute_methods/read.rb, line 119
          def attribute_cast_code(attr_name)
            columns_hash[attr_name].type_cast_code('v')
          end

Defined in activerecord/lib/active_record/attribute_methods/read.rb line 119 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::AttributeMethods::Read::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