lib/hanami/routing/resources/action.rb in hanami-router-1.0.1 vs lib/hanami/routing/resources/action.rb in hanami-router-1.1.0.beta1

- old
+ new

@@ -36,11 +36,11 @@ # The name of the RESTful action. # # @api private # @since 0.4.0 def as - Hanami::Utils::String.new(super).pluralize + Hanami::Utils::String.pluralize(super) end end # Collection action # It implements #collection within a #resources block. @@ -48,10 +48,10 @@ # @api private # @since 0.1.0 # @see Hanami::Router#resources class CollectionAction < Resource::CollectionAction def as(action_name) - Hanami::Utils::String.new(super(action_name)).pluralize + Hanami::Utils::String.pluralize(super(action_name)) end end # Member action # It implements #member within a #resources block.