lib/ivy/serializers/formats/active_model_serializers.rb in ivy-serializers-0.3.0 vs lib/ivy/serializers/formats/active_model_serializers.rb in ivy-serializers-0.4.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'active_support/inflector' +require 'inflecto' require 'ivy/serializers/formats/json' module Ivy module Serializers module Formats @@ -39,10 +39,10 @@ def polymorphic_resources(resources) resources.each { |resource| @hash_gen.push_object { polymorphic_resource(resource) } } end def singularize(name) - ActiveSupport::Inflector.singularize(name.to_s) + Inflecto.singularize(name.to_s) end end end end end