Sha256: d57f11cf72367c75388b216817f6cdfcda82a8d46935e1a2024c8a8055722d73
Contents?: true
Size: 872 Bytes
Versions: 4
Compression:
Stored size: 872 Bytes
Contents
# frozen_string_literal: true require "alchemy/version" module Alchemy module Admin class PasswordsController < ::Devise::PasswordsController include Alchemy::Admin::Locale if Alchemy.gem_version <= Gem::Version.new("4.9") before_action { enforce_ssl if ssl_required? && !request.ssl? } end helper "Alchemy::Admin::Base" layout "alchemy/admin" private # Override for Devise method def new_session_path(resource_name) alchemy.admin_login_path end def admin_edit_password_url(_resource, options = {}) alchemy.admin_edit_password_url(options) end def after_resetting_password_path_for(resource) if can? :index, :alchemy_admin_dashboard alchemy.admin_dashboard_path else alchemy.root_path end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems