method

encode_quoted_value

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Base
encode_quoted_value(value) protected

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/base.rb, line 1518
        def encode_quoted_value(value) #:nodoc:
          quoted_value = connection.quote(value)
          quoted_value = "'#{quoted_value[1..-2].gsub(/\'/, "\\\\'")}'" if quoted_value.include?("\\\'") # (for ruby mode) "
          quoted_value
        end
Register or log in to add new notes.