Skip to content
Browse files

fixes due to changes in serializer

  • Loading branch information...
1 parent dc7ef95 commit f3b79fb63a8f021f8618321c578c808da5eefae2 @mkristian committed Dec 25, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 lib/ixtlan/babel/no_timestamp_serializer.rb
View
10 lib/ixtlan/babel/no_timestamp_serializer.rb
@@ -4,13 +4,9 @@ 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 = {})

0 comments on commit f3b79fb

Please sign in to comment.
Something went wrong with that request. Please try again.