Sha256: 45ef184b81909d2601b9a8af48603cfa342d8b85c524b39619853b9683a0b2eb

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

module Cms
  module Sites

    # Override Devise Helpers to point to main_app rather than engine.
    # Used for public site authentication.
    module AuthenticationHelper

      def new_session_path(resource_name)
        main_app.new_cms_user_session_path
      end

      def session_path(resource_name)
        main_app.cms_user_session_path
      end

      def password_path(resource_name)
        main_app.cms_user_password_path
      end

      def new_password_path(resource_name)
        main_app.forgot_password_path
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.0.rc1.art4 app/helpers/cms/sites/authentication_helper.rb
browsercms-4.0.0.rc1 app/helpers/cms/sites/authentication_helper.rb
browsercms-4.0.0.beta app/helpers/cms/sites/authentication_helper.rb
browsercms-4.0.0.alpha app/helpers/cms/sites/authentication_helper.rb