Module: Enumerize::Hooks::SequelDataset

Defined in:
lib/enumerize/hooks/sequel_dataset.rb

Instance Method Summary collapse

Instance Method Details

#literal_append(sql, v) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/enumerize/hooks/sequel_dataset.rb', line 6

def literal_append(sql, v)
  if v.is_a?(Enumerize::Value)
    super(sql, v.value)
  else
    super(sql, v)
  end
end