lib/rom/repository/command_proxy.rb in rom-repository-0.3.1 vs lib/rom/repository/command_proxy.rb in rom-repository-1.0.0.beta1

- old
+ new

@@ -1,14 +1,16 @@ +require 'dry/core/inflector' + module ROM class Repository # TODO: look into making command graphs work without the root key in the input # so that we can get rid of this wrapper class CommandProxy attr_reader :command, :root def initialize(command) @command = command - @root = Inflector.singularize(command.name.relation).to_sym + @root = Dry::Core::Inflector.singularize(command.name.relation).to_sym end def call(input) command.call(root => input) end