Sha256: ab2947511df6cbf7aaea41a9aa19d4f90c5d30bbec009b7b185f5d69c5178aa4
Contents?: true
Size: 698 Bytes
Versions: 10
Compression:
Stored size: 698 Bytes
Contents
# All Administrate controllers inherit from this # `Administrate::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 Admin 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
10 entries across 10 versions & 1 rubygems