lib/representable/hash_methods.rb in representable-1.8.5 vs lib/representable/hash_methods.rb in representable-2.0.0.rc1

- old
+ new

@@ -1,13 +1,6 @@ module Representable module HashMethods - # FIXME: refactor Definition so we can simply add options in #items to existing definition. - def representable_attrs - attrs = super - attrs << Definition.new(*definition_opts) if attrs.size == 0 - attrs - end - def create_representation_with(doc, options, format) bin = representable_mapper(format, options).bindings.first hash = filter_keys_for(represented, options) bin.write(doc, hash) end