Skip to content

Commit

Permalink
Restore alt text to Practice main display image (#991)
Browse files Browse the repository at this point in the history
Co-authored-by: Camille Villa <[email protected]>
  • Loading branch information
camillevilla and camillevilla authored Aug 21, 2024
1 parent 3f32581 commit e5df1b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/practice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Practice < ApplicationRecord
attr_accessor :delete_main_display_image
attr_accessor :crop_x, :crop_y, :crop_w, :crop_h
attr_accessor :practice_partner, :department, :practice_award, :category
attr_accessor :main_display_image_alt_text, :highlight_attachment_content_type
attr_accessor :highlight_attachment_content_type

def self.cached_json_practices(is_guest_user)
if is_guest_user
Expand Down Expand Up @@ -433,8 +433,7 @@ def diffusion_history_status_by_facility(facility)
def trim_whitespace
strip_attributes(
[
self.name,
self.main_display_image_alt_text
self.name
]
)
end
Expand Down

0 comments on commit e5df1b6

Please sign in to comment.