Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–4 unchanged (4 lines)
5 before_action :set_site_upload
6
7 def destroy
8 authorize :settings, :destroy?
9
10 @site_upload.destroy!
11
12 redirect_back fallback_location: admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
13 end
14
15 private
16
17 def set_site_upload
18 @site_upload = SiteUpload.find(params[:id])
…lines 19–22 unchanged (4 lines)

After

…lines 1–4 unchanged (4 lines)
5 before_action :set_site_upload
6
7 def destroy
8 authorize :settings, :destroy?
9
10 @site_upload.destroy!
11
12 redirect_back_or_to admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
13 end
14
15 private
16
17 def set_site_upload
18 @site_upload = SiteUpload.find(params[:id])
…lines 19–22 unchanged (4 lines)

Before

program
comment "# frozen_string_literal: true"
module
module "module"
constant "Admin"
body_statement
class
class "class"
constant "SiteUploadsController"
superclass
< "<"
constant "BaseController"
body_statement
call
identifier "before_action"
argument_list
simple_symbol ":set_site_upload"
method
def "def"
identifier "destroy"
body_statement
call
identifier "authorize"
argument_list
simple_symbol ":settings"
, ","
simple_symbol ":destroy?"
call
instance_variable "@site_upload"
. "."
identifier "destroy!"
call
identifier "redirect_back"
argument_list
pair
hash_key_symbol "fallback_location"
: ":"
identifier "admin_settings_path"
, ","
pair
hash_key_symbol "notice"
: ":"
call
constant "I18n"
. "."
identifier "t"
argument_list
( "("
string
" "'"
string_content "admin.site_uploads.destroyed_msg"
" "'"
) ")"
end "end"
identifier "private"
method
def "def"
identifier "set_site_upload"
body_statement
assignment
instance_variable "@site_upload"
= "="
call
constant "SiteUpload"
. "."
identifier "find"
argument_list
( "("
element_reference
identifier "params"
[ "["
simple_symbol ":id"
] "]"
) ")"
end "end"
end "end"
end "end"

After

program
comment "# frozen_string_literal: true"
module
module "module"
constant "Admin"
body_statement
class
class "class"
constant "SiteUploadsController"
superclass
< "<"
constant "BaseController"
body_statement
call
identifier "before_action"
argument_list
simple_symbol ":set_site_upload"
method
def "def"
identifier "destroy"
body_statement
call
identifier "authorize"
argument_list
simple_symbol ":settings"
, ","
simple_symbol ":destroy?"
call
instance_variable "@site_upload"
. "."
identifier "destroy!"
call
identifier "redirect_back_or_to"
argument_list
identifier "admin_settings_path"
, ","
pair
hash_key_symbol "notice"
: ":"
call
constant "I18n"
. "."
identifier "t"
argument_list
( "("
string
" "'"
string_content "admin.site_uploads.destroyed_msg"
" "'"
) ")"
end "end"
identifier "private"
method
def "def"
identifier "set_site_upload"
body_statement
assignment
instance_variable "@site_upload"
= "="
call
constant "SiteUpload"
. "."
identifier "find"
argument_list
( "("
element_reference
identifier "params"
[ "["
simple_symbol ":id"
] "]"
) ")"
end "end"
end "end"
end "end"