Sha256: 9a302633fcfd113b769bb6060add9e1d18bd9cf12a9969a5c76cd9808c6e262c

Contents?: true

Size: 482 Bytes

Versions: 7

Compression:

Stored size: 482 Bytes

Contents

module NavigationHelpers
  module Refinery
    module Authentication
      def path_to(page_name)
        case page_name

        when /the list of users/
          admin_users_path

        when /the login page/
          new_session_path

        when /the forgot password page/
          forgot_users_path

        when /the reset password page/
          reset_users_path(:reset_code => @user.perishable_token)
        else
          nil
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/authentication/features/support/paths.rb
refinerycms-0.9.8.8 vendor/refinerycms/authentication/features/support/paths.rb
refinerycms-0.9.8.7 vendor/refinerycms/authentication/features/support/paths.rb
refinerycms-0.9.8.6 vendor/refinerycms/authentication/features/support/paths.rb
refinerycms-0.9.8.5 vendor/refinerycms/authentication/features/support/paths.rb
refinerycms-0.9.8.4 vendor/refinerycms/authentication/features/support/paths.rb
refinerycms-0.9.8.3 vendor/refinerycms/authentication/features/support/paths.rb