#RubyOnRails - 21 August 2019
« Back 1 day Forward 1 day »
[01:35:44] fp-: hey guys, I just upgraded my Rails 5.2 installation to 6.0, and I can't get past an error that seems like a bug with Rails... "wrong number of arguments (given 2, expected 1)" in arel (9.0.0) lib/arel/visitors/to_sql.rb:73:in `compile'
[09:58:23] NL3limin4t0r: Does anybody know if there is a way using the factory_bot/factory_bot_rails gem to mark a factory as abstract. I've got one factory that isn't valid by itself, but holds all the common attributes.
[10:03:32] NL3limin4t0r: I currently have the issue that I often do `create(:relation)` and are greeded with the exception "ActiveRecord::RecordInvalid". Leaving me thinking where did I do something wrong? However I'd like to see something like "this is an abstract factory you dummy". Letting me realize sooner that I should use `create(:household_relation)` or `create(:company_relation)`.
[16:24:43] Sylario: or rather a fancy list of the installed gem, is there a way to do the same for rdoc?
[16:31:26] havenwood: sylario: Usually just installing the docs for the gems fills in those links: gem rdoc --all
[17:22:24] istrasci: Is there any way to tell if an ActiveRecord.transaction block succeeded or not (assuming the only exception that could be raised in the block is ActiveRecord::Rollback, and those are not re-raised)?