Skip to content

Commit

Permalink
💄 rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore committed Oct 12, 2023
1 parent 4c690ce commit 0fea48a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/fabric.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions app/controllers/hyrax/admin/appearances_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def show

def update
form = form_class.new(update_params)
if update_params[:banner_image].present?
form.banner_image = update_params[:banner_image]
end
form.banner_image = update_params[:banner_image] if update_params[:banner_image].present?

form.update!

Expand Down
4 changes: 1 addition & 3 deletions app/forms/hyrax/forms/admin/appearance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def persisted?
true
end

def banner_image=(value)
site.banner_image = value
end
delegate :banner_image=, to: :site

# The alt text for the logo image
def logo_image_text
Expand Down

0 comments on commit 0fea48a

Please sign in to comment.