Skip to content

Commit

Permalink
Fix model object reference
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Feb 8, 2024
1 parent 1f88313 commit 516757f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activestorage/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class User < ActiveRecord::Base
has_one_attached :cover_photo, dependent: false, service: :local
has_one_attached :avatar_with_dynamic do |attachable|
attachable.variant :thumb, resize_to_limit: :thumb_size
attachable.variant :thumb_proc, resize_to_limit: ->(model) { mode.thumb_size }
attachable.variant :thumb_proc, resize_to_limit: ->(model) { model.thumb_size }
end
has_one_attached :avatar_with_variants do |attachable|
attachable.variant :thumb, resize_to_limit: [100, 100]
Expand All @@ -157,7 +157,7 @@ class User < ActiveRecord::Base
end
has_many_attached :highlights_with_dynamic do |attachable|
attachable.variant :thumb, resize_to_limit: :thumb_size
attachable.variant :thumb_proc, resize_to_limit: ->(model) { mode.thumb_size }
attachable.variant :thumb_proc, resize_to_limit: ->(model) { model.thumb_size }
end
has_many_attached :highlights_with_preprocessed do |attachable|
attachable.variant :bool, resize_to_limit: [1, 1], preprocessed: true
Expand Down

0 comments on commit 516757f

Please sign in to comment.