Sha256: 5116ce513adb9ddce12e06df1fbab94525108cb3710070f5aca63023079a8b41

Contents?: true

Size: 513 Bytes

Versions: 32

Compression:

Stored size: 513 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_user_session_path

        when /the forgot password page/
          new_user_password_path

        when /the reset password page/
          edit_user_password_path(:reset_password_token => @user.reset_password_token)
        else
          nil
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
refinerycms-authentication-0.9.9.12 features/support/paths.rb
refinerycms-authentication-0.9.9.11 features/support/paths.rb
refinerycms-authentication-0.9.9.10 features/support/paths.rb
refinerycms-authentication-0.9.9.9 features/support/paths.rb
refinerycms-authentication-0.9.9.8 features/support/paths.rb
refinerycms-authentication-0.9.9.7 features/support/paths.rb
refinerycms-authentication-0.9.9.5 features/support/paths.rb
refinerycms-authentication-0.9.9.4 features/support/paths.rb
refinerycms-authentication-0.9.9.3 features/support/paths.rb
refinerycms-authentication-0.9.9.2 features/support/paths.rb
refinerycms-authentication-0.9.9.1 features/support/paths.rb
refinerycms-0.9.9 authentication/features/support/paths.rb