method

typecast_attribute_values

Importance_0
v7.1.3.2 - 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.to_h do |key, value|
            typecast = ATTRIBUTE_TYPES[key] || ATTRIBUTE_TYPES[:default]
            [key, typecast.call(value)]
          end
        end
Register or log in to add new notes.