Results 11 issues of Daniel Colson

Related: https://github.com/thoughtbot/factory_bot/issues/385 On a current project we have a trait that looks like this: ```rb trait :with_profile_image do transient do profile_image_file { Rails.root.join("spec", "fixtures", "jpeg.jpg") } end after :build do...

feature

We have had several issues over the years related to `FactoryBot.aliases`: #522 #734 #851 #989 #1096 #1138, #1417. In most of these issues people do not realize that `factory_bot` assumes`{attribute}_id`...

When we release factory_bot 7, we should stop testing against any end-of-life Ruby versions (probably 2.5 and 2.6 by the time we release - https://www.ruby-lang.org/en/downloads/branches/). Similarly for Rails, we stop...

feature
7.0 Release

### Problem this feature will solve Our GETTING_STARTED file is overwhelmingly large. It isn't so much a guide for getting started with factory_bot as complete documentation for every factory_bot feature....

feature
documentation

Some of this was taken from https://github.com/thoughtbot/administrate/wiki/Field:-RichTextAreaField

feature
fields

Rails now includes net-protocol as a gem dependency (via the net-smtp, net-imap, and net-pop gems). On Ruby 2.7 net-http loads the built-in version of net-protocol via a `require_relative`. If both...

Backport

https://github.com/thoughtbot/suspenders/blob/285c002cb1095a0031444840b8ee1c31324264e8/lib/suspenders/actions.rb#L12..L28 adds action_mailer configuration to the end of the file, whereas https://github.com/thoughtbot/suspenders/blob/285c002cb1095a0031444840b8ee1c31324264e8/lib/suspenders/generators/production/email_generator.rb#L21..L30 adds action_mailer configuration below some other action_mailer configuration. It might be nice to keep related configuration grouped together.

[Brakeman](https://brakemanscanner.org/) scans for security vulnerabilities. I think we should add it to the default Gemfile so folks are encouraged to run it locally. Once we have a better CI setup,...

Enhancement

Rails generators can be a bit of a mystery for folks unfamiliar with them. While trying to explain to somebody where some of the file manipulation methods come from it...

Documentation

## Is your feature request related to a problem? Please describe. The Rails/InverseOf cop reports violations for any `belongs_to` associations with options like `:foreign_key` that prevent automatic inverse detection. This...