lib/ixtlan/babel/no_timestamp_serializer.rb in ixtlan-babel-0.1.2 vs lib/ixtlan/babel/no_timestamp_serializer.rb in ixtlan-babel-0.2.0

- old
+ new

@@ -2,16 +2,12 @@ module Ixtlan module Babel class NoTimestampSerializer < Serializer def self.add_defaults(root = nil) - if root - add_context(:default, :root => root) - add_no_timestamp_context(:collection, :root => root) - else - add_context(:default) - add_no_timestamp_context(:collection) - end + self.root root + add_context(:default) + add_no_timestamp_context(:collection) end def self.add_no_timestamp_context(key, options = {}) except = (options[:except] || []).dup except << :updated_at