Sha256: da1a4e6e4b87841cce32876f0657ab7d4ad3f4c2726b90bf9c8bb835676e640e
Contents?: true
Size: 691 Bytes
Versions: 8
Compression:
Stored size: 691 Bytes
Contents
# All Administrate controllers inherit from this `Admin::ApplicationController`, # making it the ideal place to put authentication logic or other # before_filters. # # 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_filter :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 & 1 rubygems