method

quote_default_expression

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Quoting
quote_default_expression(value, column) 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/connection_adapters/sqlite3/quoting.rb, line 51
        def quote_default_expression(value, column) # :nodoc:
          if value.is_a?(Proc)
            value = value.call
            if value.match?(/\A\w+\(.*\)\z/)
              "(#{value})"
            else
              value
            end
          else
            super
          end
        end
Register or log in to add new notes.