Skip to content

Commit

Permalink
accept uploaded images for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
saracarl committed Apr 15, 2022
1 parent 64695c0 commit 058929f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/page_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create

def update
page = Page.find(params[:id])
attributes = page_params.to_h
attributes = page_params.to_h.except("base_image")
if page_params[:status].blank?
attributes['status'] = nil
end
Expand Down

0 comments on commit 058929f

Please sign in to comment.