method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: IndifferentCoder
new(attr_name, coder_or_class_name) public

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/store.rb, line 261
        def initialize(attr_name, coder_or_class_name)
          @coder =
            if coder_or_class_name.respond_to?(:load) && coder_or_class_name.respond_to?(:dump)
              coder_or_class_name
            else
              ActiveRecord::Coders::YAMLColumn.new(attr_name, coder_or_class_name || Object)
            end
        end
Register or log in to add new notes.