lib/representable.rb in representable-1.1.6 vs lib/representable.rb in representable-1.1.7
- old
+ new
@@ -197,19 +197,6 @@
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
gsub(/([a-z\d])([A-Z])/,'\1_\2').
downcase
end
end
-
-
- # Allows mapping formats to representer classes.
- # DISCUSS: this module might be removed soon.
- module Represents
- def represents(format, options)
- representer[format] = options[:with]
- end
-
- def representer
- @represents_map ||= {}
- end
- end
end