# 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. class Admin::ApplicationController < Administrate::ApplicationController include Monban::ControllerHelpers before_filter :require_login # 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