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.1.2 spec/internal/app/controllers/application_controller.rb
krikri-0.1.2 lib/generators/krikri/templates/application_controller.rb
krikri-0.1.1 spec/internal/app/controllers/application_controller.rb
krikri-0.1.1 lib/generators/krikri/templates/application_controller.rb
krikri-0.1.0 spec/internal/app/controllers/application_controller.rb
krikri-0.1.0 lib/generators/krikri/templates/application_controller.rb