Sha256: 64f43f7e411cdd5c10e12e3cb599e38290a339d8c4069ab0b03d386ce192404c

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

require_relative '../application_controller'

module Admin
  class ApplicationController < ::ApplicationController
    before_action :authenticate!
    before_action :pagination, only: [:index]

    protected

    def pagination
      params[:per_page] ||= 10
      params[:page] ||= 1
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecrire-0.22.1 lib/ecrire/app/controllers/admin/application_controller.rb
ecrire-0.21.0 lib/ecrire/app/controllers/admin/application_controller.rb
ecrire-0.20.0 lib/ecrire/app/controllers/admin/application_controller.rb