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-1.0.11 features/support/paths.rb
refinerycms-authentication-1.0.10 features/support/paths.rb
refinerycms-authentication-1.0.9 features/support/paths.rb
refinerycms-authentication-1.0.8 features/support/paths.rb
refinerycms-authentication-1.0.7 features/support/paths.rb
refinerycms-authentication-1.0.5 features/support/paths.rb
refinerycms-authentication-1.0.4 features/support/paths.rb
refinerycms-authentication-1.0.3 features/support/paths.rb
refinerycms-authentication-1.0.1 features/support/paths.rb
refinerycms-authentication-1.0.0 features/support/paths.rb
refinerycms-authentication-0.9.9.22 features/support/paths.rb
refinerycms-authentication-0.9.9.21 features/support/paths.rb
refinerycms-authentication-0.9.9.20 features/support/paths.rb
refinerycms-authentication-0.9.9.19 features/support/paths.rb
refinerycms-authentication-0.9.9.18 features/support/paths.rb
refinerycms-authentication-0.9.9.17 features/support/paths.rb
refinerycms-authentication-0.9.9.16 features/support/paths.rb
refinerycms-authentication-0.9.9.15 features/support/paths.rb
refinerycms-authentication-0.9.9.14 features/support/paths.rb
refinerycms-authentication-0.9.9.13 features/support/paths.rb