lib/timber/contexts/user.rb in timber-2.1.0.rc5 vs lib/timber/contexts/user.rb in timber-2.1.0.rc6

- old
+ new

@@ -19,10 +19,10 @@ @id = attributes[:id] @name = attributes[:name] @email = attributes[:email] end - # Builds a hash representation of containing simply objects, suitable for serialization. + # Builds a hash representation containing simple objects, suitable for serialization (JSON). def as_json(_options = {}) {id: Timber::Util::Object.try(id, :to_s), name: name, email: email} end end end \ No newline at end of file