Module: ActiveRecord::ConnectionAdapters::Quoting
- Defined in:
- lib/ar-extensions/finders.rb
Instance Method Summary collapse
Instance Method Details
#quote(value, column = nil) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 |
# File 'lib/ar-extensions/finders.rb', line 5 def quote( value, column=nil ) # :nodoc: if value.is_a?( Regexp ) "'#{value.inspect[1...-1]}'" else quote_before_arext( value, column ) end end |
#quote_before_arext ⇒ Object
4 |
# File 'lib/ar-extensions/finders.rb', line 4 alias :quote_before_arext :quote |