Commands
$ rails generate command DoSomething fooclass DoSomething < PowerTypes::Command.new(:foo, :bar)
def perform(args)
end
endresult = DoSomething.for(foo: waffle, bar: pancake)Última actualización
$ rails generate command DoSomething fooclass DoSomething < PowerTypes::Command.new(:foo, :bar)
def perform(args)
end
endresult = DoSomething.for(foo: waffle, bar: pancake)Última actualización