Skip to content

Commit

Permalink
Fix RuboCop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Nov 15, 2023
1 parent 5096a4e commit b4f540b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rails_admin/config/fields/types/active_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ActiveStorage < RailsAdmin::Config::Fields::Types::FileUpload
end

register_instance_option :image? do
value.representable? if value
value&.representable?
end

register_instance_option :eager_load do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ActiveStorageAttachment < RailsAdmin::Config::Fields::Types::MultipleFileU
end

register_instance_option :image? do
value.representable? if value
value&.representable?
end

def resource_url(thumb = false)
Expand Down

0 comments on commit b4f540b

Please sign in to comment.