method

typecast_attribute_values

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: TrixAttachment
typecast_attribute_values(attributes) private

No documentation

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

Hide source
# File actiontext/lib/action_text/trix_attachment.rb, line 41
        def typecast_attribute_values(attributes)
          attributes.map do |key, value|
            typecast = ATTRIBUTE_TYPES[key] || ATTRIBUTE_TYPES[:default]
            [key, typecast.call(value)]
          end.to_h
        end
Register or log in to add new notes.