Sha256: 71825f0550b1bbfa05e6c43b6bb8e786c2e23858b90e2654de3dc63b7a798575
Contents?: true
Size: 438 Bytes
Versions: 29
Compression:
Stored size: 438 Bytes
Contents
module SlashAdmin class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :set_locale helper Rails.application.routes.url_helpers def current_ability @current_ability ||= SlashAdmin::AdminAbility.new(current_admin) end private def set_locale I18n.locale = http_accept_language.compatible_language_from(I18n.available_locales) end end end
Version data entries
29 entries across 29 versions & 1 rubygems