Module: Torque::PostgreSQL::Arel::Operations
- Defined in:
- lib/torque/postgresql/arel/operations.rb
Instance Method Summary collapse
-
#cast(type, array = false) ⇒ Object
Make sure to add proper support over AR’s own
cast
method while still allow attributes to be casted. -
#pg_cast(type, array = false) ⇒ Object
Create a cast operation.
Instance Method Details
#cast(type, array = false) ⇒ Object
Make sure to add proper support over AR’s own cast
method while still allow attributes to be casted
15 16 17 |
# File 'lib/torque/postgresql/arel/operations.rb', line 15 def cast(type, array = false) defined?(super) && !array ? super(type) : pg_cast(type, array) end |