Skip to content

Commit 1d9e860

Browse files
committed
Update application_helper.rb
1 parent 2a77f5a commit 1d9e860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def report_history(obj, text: 'Report history')
77
url = :"#{obj.class.to_s.downcase}_reports_url"
88
id = modal(
99
'Report history', size: :xl,
10-
async: send(url, obj, content: true)
10+
async: polymorphic_url([:reports, obj], content: true)
1111
)
1212
modal_button(id, class: 'btn btn-primary btn-sm') do
1313
fa_icon('archive') + ' ' + text

0 commit comments

Comments
 (0)