These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
attrs = articles.create(result.output)or something?
resultwithout to_h/output wouldn’t work right?
result[:attr_name]. I’m not sure if the rom command will implicitly
.to_hon its input though
In view "pages.about", where is the 'people' local variable set? In routes file its just :
route "about" do |r|
r.view, then it fetches an object from the container matching
dry-web-roda new AppName
What are the advantages of doing :
over a simple require? It seems like "admin.persistence.repositories.users" is already coupled to that specific file.
my_thing.call do |m| m.success do |v| end m.failure do |v| end end
#calldoes is return a value. the include enhances it with this API for when you pass a block.
In the user Update operation, why don't you also inject the validation form? https://github.com/icelab/berg/blob/master/apps/admin/lib/admin/users/operations/update.rb
The validation form does depend on an item in the container.
"10."be considered as a valid representation of a decimal value??
irb(main):002:0> Types::Form::Float['10.1'] => 10.1 irb(main):003:0> Types::Form::Decimal['10.1'] => #<BigDecimal:7fcfda0b0e80,’0.101E2’,18(18)>
undefined method warn' for [:val, [:predicate, [:key?, [:licenses]]]]:Dry::Validation::Schema::Rule (NoMethodError):)