lib/toy/serialization.rb in toystore-0.6.1 vs lib/toy/serialization.rb in toystore-0.6.2
- old
+ new
@@ -12,10 +12,11 @@
hash = {}
options ||= {}
options[:only] = Array.wrap(options[:only]).map(&:to_sym)
options[:except] = Array.wrap(options[:except]).map(&:to_sym)
- serializable_stuff = serializable_attributes.map(&:to_sym) + self.class.embedded_lists.keys.map(&:to_sym)
+ serializable_stuff = serializable_attributes.map(&:to_sym) +
+ self.class.embedded_lists.keys.map(&:to_sym)
if options[:only].any?
serializable_stuff &= options[:only]
elsif options[:except].any?
serializable_stuff -= options[:except]
\ No newline at end of file