app/controllers/concerns/hyrax/admin/stats_behavior.rb in hyrax-3.0.0.pre.rc1 vs app/controllers/concerns/hyrax/admin/stats_behavior.rb in hyrax-3.0.0.pre.rc2
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
module Hyrax
module Admin
##
# @example using a custom presenter and stats services
# class MyStatsController < ApplicationController
@@ -31,14 +32,14 @@
add_breadcrumb t(:'hyrax.admin.sidebar.statistics'), hyrax.admin_stats_path
end
private
- def build_presenter(stats_filters, limit)
- presenter_class = self.class.admin_stats_presenter
- services_opts = self.class.admin_stats_services
+ def build_presenter(stats_filters, limit)
+ presenter_class = self.class.admin_stats_presenter
+ services_opts = self.class.admin_stats_services
- presenter_class.new(stats_filters, limit, **services_opts)
- end
+ presenter_class.new(stats_filters, limit, **services_opts)
+ end
end
end
end