method
json_to_string
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQLColumn::Cast
json_to_string(object)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/cast.rb, line 62
def json_to_string(object)
if Hash === object || Array === object
ActiveSupport::JSON.encode(object)
else
object
end
end