app/tables/importo/imports_table.rb in importo-3.0.12 vs app/tables/importo/imports_table.rb in importo-3.0.13
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
-class Importo::ImportsTable < ActionTable::ActionTable
+if defined? ActionTable
+ class Importo::ImportsTable < ActionTable::ActionTable
model Importo::Import
column(:created_at, html_value: proc { |import| l(import.created_at.in_time_zone(Time.zone), format: :short).to_s })
column(:user, sortable: false) { |import| import.importo_ownable.name }
column(:kind, sortable: false)
@@ -29,7 +30,11 @@
private
def scope
@scope = Importo.config.admin_visible_imports.call
@scope
+ end
+end
+else
+ class Importo::ImportsTable
end
end