module ActiveRecord::ConnectionAdapters::PostgreSQLColumn::Cast
Public Instance Methods
json_to_string(object)
click to toggle source
# 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