Sha256: dc64feb5a8f6e3dbb399c13761788b476fbb33203aaa5e8a1907e16372faec0e

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require_dependency "para/application_controller"

module Para
  module Admin
    class CrudComponentController < Para::Admin::BaseController
      load_and_authorize_component

      def show
        @q = @component.resources.search(params[:q])
        @resources = @q.result.page(params[:page])

        # Sort collection for orderable and trees
        @resources = @resources.ordered if @resources.respond_to?(:ordered)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
para-0.4.0 app/controllers/para/admin/crud_component_controller.rb