Module: ActiveRecord::ConnectionAdapters::PostgreSQLColumn::Cast
- Defined in:
- lib/restpack_service/activerecord/postgres_array_patch.rb
Instance Method Summary collapse
Instance Method Details
#json_to_string(object) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/restpack_service/activerecord/postgres_array_patch.rb', line 5 def json_to_string(object) if Hash === object || Array === object ActiveSupport::JSON.encode(object) else object end end |