Module: ActiveRecord::ConnectionAdapters::Quoting
- Defined in:
- lib/enum_column/quoting.rb
Instance Method Summary collapse
Instance Method Details
#quote_with_enum(value, column = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/enum_column/quoting.rb', line 4 def quote_with_enum(value, column = nil) if value.is_a?(Symbol) quote_without_enum(value.to_s, column) else quote_without_enum(value, column) end end |