Skip to content

Commit

Permalink
Scout commit
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Dec 17, 2024
1 parent e5a4021 commit cc12ac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/helpers/authorization_requests_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def render_custom_editable_block_or_default(authorization_request, block_id, loc
render partial: "authorization_request_forms/blocks/default/#{block_id}", locals:
end

def render_custom_block_or_default(authorization_request, block, locals = {})
render partial: "authorization_requests/blocks/#{authorization_request.definition.id}/#{block}", locals:
def render_custom_block_or_default(authorization_request, block_id, locals = {})
render partial: "authorization_requests/blocks/#{authorization_request.definition.id}/#{block_id}", locals:
rescue ActionView::MissingTemplate
render partial: "authorization_requests/blocks/default/#{block}", locals:
render partial: "authorization_requests/blocks/default/#{block_id}", locals:
end
end

0 comments on commit cc12ac9

Please sign in to comment.