lib/timber/contexts/user.rb in timber-2.1.9 vs lib/timber/contexts/user.rb in timber-2.1.10

- old
+ new

@@ -14,19 +14,19 @@ @keyspace = :user attr_reader :id, :name, :email, :type, :meta def initialize(attributes) - @id = attributes[:id] + @id = Timber::Util::Object.try(attributes[:id], :to_s) @name = attributes[:name] @email = attributes[:email] @type = attributes[:type] @meta = attributes[:meta] end # 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, type: type, meta: meta} + {id: id, name: name, email: email, type: type, meta: meta} end end end end \ No newline at end of file