Sha256: 4e05c9d954ca2cab4562b79976b583690ee182414cefa0ff8c81adcb78dc6e26
Contents?: true
Size: 711 Bytes
Versions: 8
Compression:
Stored size: 711 Bytes
Contents
# All Administrate controllers inherit from this `Admin::ApplicationController`, # making it the ideal place to put authentication logic or other # before_actions. # # If you want to add pagination or other controller-level concerns, # you're free to overwrite the RESTful controller actions. module <%= namespace.classify %> class ApplicationController < Administrate::ApplicationController before_action :authenticate_admin def authenticate_admin # TODO Add authentication logic here. end # Override this value to specify the number of elements to display at a time # on index pages. Defaults to 20. # def records_per_page # params[:per_page] || 20 # end end end
Version data entries
8 entries across 8 versions & 2 rubygems