get all method names set by Active Storage on a model
ActiveStorage
Rails
class MyModel < ApplicationModel has_one_attached :foo has_many_attached :bars end
my_model.attachment_reflections.keys #= > ["foo", "bars"
class MyModel < ApplicationModel has_one_attached :foo has_many_attached :bars end
my_model.attachment_reflections.keys #= > ["foo", "bars"