rom-rb / rom-factory

Data generator with support for persistence backends
MIT License
83 stars 42 forks source link

Fix wrong information about building memory object #62

Closed davydovanton closed 4 years ago

davydovanton commented 4 years ago

Hey, I found the issue in the documentation:

(rdb:1) Factory.structs[:payment, id: 3]
#<ROM::Struct::Payment id=3 ...>

(rdb:1) Factory.structs(:payment, id: 3)
/Users/anton/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/debug.rb:286:in `eval':wrong number of arguments (given 2, expected 0)