Sha256: 1ac6d7cc772b7f7b29e32a108e35fe0bd2e3592c7a41a6478957701d30e6c378

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

module Ecm::CoreInfo::Backend
  class EnginesController < Itsf::Backend::Resource::BaseController
    def self.resource_class
      Ecm::CoreInfo::RailsEngine
    end

    private

    def collection_scope
      if Itsf::Backend.features?(:kaminari)
        Kaminari.paginate_array(resource_class.all)
      else
        super
      end
    end

    def to_param_method
      :class
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecm_core_info_backend-0.0.4 app/controllers/ecm/core_info/backend/engines_controller.rb
ecm_core_info_backend-0.0.3 app/controllers/ecm/core_info/backend/engines_controller.rb
ecm_core_info_backend-0.0.2 app/controllers/ecm/core_info/backend/engines_controller.rb