Sha256: 32f19c68372091e5f197001aba296af3745bddf36e60dbce6f84f775479024c7
Contents?: true
Size: 380 Bytes
Versions: 23
Compression:
Stored size: 380 Bytes
Contents
require_relative '../application_controller' module Admin class ApplicationController < ::ApplicationController before_action :authenticate! before_action :pagination, only: [:index] helper_method :posts def posts @posts ||= Post.all end protected def pagination params[:per_page] ||= 10 params[:page] ||= 1 end end end
Version data entries
23 entries across 23 versions & 1 rubygems