method

value_for_database

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Casted
value_for_database() 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/arel/nodes/casted.rb, line 17
      def value_for_database
        if attribute.able_to_type_cast?
          attribute.type_cast_for_database(value)
        else
          value
        end
      end
Register or log in to add new notes.