Class: Sequel::Postgres::Dataset
- Inherits:
-
Object
- Object
- Sequel::Postgres::Dataset
- Defined in:
- lib/pg_json/sequel/pg_json.rb
Instance Method Summary collapse
Instance Method Details
#json ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/pg_json/sequel/pg_json.rb', line 30 def json if self.first JSON.parse(self.first[:to_json]).tap do |h| h.recursively_symbolize_keys! end else nil end end |