Remove unused code.
This commit is contained in:
parent
144e237bff
commit
5a990fc245
|
@ -192,7 +192,7 @@ class Admin::AnnouncementsController < OrbitAdminController
|
||||||
if File.exist?(filename)
|
if File.exist?(filename)
|
||||||
@thread.update(:status=>{:status=>'finish','finish_percent'=>100,'info'=>I18n.t('announcement.read_from_cache')})
|
@thread.update(:status=>{:status=>'finish','finish_percent'=>100,'info'=>I18n.t('announcement.read_from_cache')})
|
||||||
else
|
else
|
||||||
excel_contents = render_to_string( handlers: [:axlsx], formats: [:xlsx] ,partial: 'export_excel.xlsx',locals: {:@announcements=>@announcements,:@thread=>@thread, :@host=>@host} )
|
excel_contents = render_to_string( handlers: [:axlsx], formats: [:xlsx] ,partial: 'export_excel.xlsx' )
|
||||||
File.open(filename, 'w') do |f|
|
File.open(filename, 'w') do |f|
|
||||||
f.write excel_contents
|
f.write excel_contents
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue