mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
03afddd2eb
Consider the following model definitions: class User < ApplicationRecord has_one_attached :avatar end class Group < ApplicationRecord has_one_attached :avatar end If you attempt to reflect on the User model's avatar attachment via User.reflect_on_attachment, you could receive a reflection for the Group model's avatar attachment. Fix this by ensuring that each model class uses its own Hash object to track attachment reflections. |
||
---|---|---|
.. | ||
active_storage | ||
tasks | ||
active_storage.rb |