diff options
| -rw-r--r-- | app/controllers/import_resources_controller.rb | 8 | ||||
| -rw-r--r-- | app/decorators/import_resource_decorator.rb | 10 | ||||
| -rw-r--r-- | app/views/import_resources/index.html.slim | 1 | 
3 files changed, 1 insertions, 18 deletions
| diff --git a/app/controllers/import_resources_controller.rb b/app/controllers/import_resources_controller.rb index c83721310..ea78394a1 100644 --- a/app/controllers/import_resources_controller.rb +++ b/app/controllers/import_resources_controller.rb @@ -27,12 +27,6 @@ class ImportResourcesController < ChouetteController    private    def decorate_import_resources(import_resources) -    ImportResourcesDecorator.decorate( -      import_resources, -      with: ImportResourceDecorator, -      context: { -        import: @import -      } -    ) +    ImportResourcesDecorator.decorate(import_resources)    end  end diff --git a/app/decorators/import_resource_decorator.rb b/app/decorators/import_resource_decorator.rb deleted file mode 100644 index 9bfd1f757..000000000 --- a/app/decorators/import_resource_decorator.rb +++ /dev/null @@ -1,10 +0,0 @@ -class ImportResourceDecorator < Draper::Decorator -  decorates ImportResource - -  delegate_all - -  def action_links -    links = [] -  end - -end diff --git a/app/views/import_resources/index.html.slim b/app/views/import_resources/index.html.slim index 728d9f4a8..72b67b57d 100644 --- a/app/views/import_resources/index.html.slim +++ b/app/views/import_resources/index.html.slim @@ -43,7 +43,6 @@                    end \                  ), \                ], -              links: [],                cls: 'table has-search'          - else            .col-lg-12 | 
