method

quote_default_expression

quote_default_expression(value, column)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 145
      def quote_default_expression(value, column) # :nodoc:
        if value.is_a?(Proc)
          value.call
        else
          # TODO: Remove fetch_cast_type and the need for connection after we release 8.1.
          cast_type = column.fetch_cast_type(self)
          value = cast_type.serialize(value)
          quote(value)
        end
      end