1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/lib
George Claghorn 03afddd2eb Fix that models can clobber each others' attachment reflections
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.
2018-07-07 17:09:31 -04:00
..
active_storage Fix that models can clobber each others' attachment reflections 2018-07-07 17:09:31 -04:00
tasks Hide Active Storage migration installation task (#33007) 2018-05-28 18:09:38 +02:00
active_storage.rb Permit configuring the default service URL expiry 2018-06-21 11:06:32 -04:00