Sha256: ddb3f9fb492df21995bedb39060d5bbebc94b613fbd68b9a0cdafafd53381257

Contents?: true

Size: 520 Bytes

Versions: 106

Compression:

Stored size: 520 Bytes

Contents

class ApplicationController < ActionController::Base
  # Adds a few additional behaviors into the application controller required
  # by Blacklight. Note that Blacklight requires two specific methods:
  # current_user and user_session to perform user-specific actions.
  include Blacklight::Controller

  # Use Krikri's layout by default
  layout 'krikri/application'

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception
end

Version data entries

106 entries across 54 versions & 1 rubygems

Version Path
krikri-0.15.2 lib/generators/krikri/templates/application_controller.rb
krikri-0.15.1 spec/internal/app/controllers/application_controller.rb
krikri-0.15.1 lib/generators/krikri/templates/application_controller.rb
krikri-0.15.0 spec/internal/app/controllers/application_controller.rb
krikri-0.15.0 lib/generators/krikri/templates/application_controller.rb
krikri-0.14.0 lib/generators/krikri/templates/application_controller.rb
krikri-0.13.2 lib/generators/krikri/templates/application_controller.rb
krikri-0.13.2 spec/internal/app/controllers/application_controller.rb
krikri-0.13.1 lib/generators/krikri/templates/application_controller.rb
krikri-0.13.1 spec/internal/app/controllers/application_controller.rb
krikri-0.13.0 lib/generators/krikri/templates/application_controller.rb
krikri-0.13.0 spec/internal/app/controllers/application_controller.rb
krikri-0.12.4 lib/generators/krikri/templates/application_controller.rb
krikri-0.12.4 spec/internal/app/controllers/application_controller.rb
krikri-0.12.3 lib/generators/krikri/templates/application_controller.rb
krikri-0.12.3 spec/internal/app/controllers/application_controller.rb
krikri-0.12.1 spec/internal/app/controllers/application_controller.rb
krikri-0.12.1 lib/generators/krikri/templates/application_controller.rb
krikri-0.12.0 spec/internal/app/controllers/application_controller.rb
krikri-0.12.0 lib/generators/krikri/templates/application_controller.rb