Sha256: 920a11a7194e8c969fab5eef5800d822799e345c663c1a377cf8315a6fd45803

Contents?: true

Size: 659 Bytes

Versions: 3

Compression:

Stored size: 659 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.
class Admin::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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-0.1.1 lib/generators/administrate/install/templates/application_controller.rb
administrate-0.1.0 lib/generators/administrate/install/templates/application_controller.rb
administrate-0.0.12 lib/generators/administrate/install/templates/application_controller.rb