module ActiveRecord::ConnectionAdapters::Quoting
Public Instance Methods
quote(value, column = nil)
click to toggle source
Quote a symbol as a normal string. This will support quoting of enumerated values.
# File lib/enum/quoting.rb, line 8 def quote(value, column = nil) if !value.is_a? Symbol __quote_enum(value, column) else ActiveRecord::Base.send(:quote_bound_value, value.to_s) end end
Also aliased as: __quote_enum