Sha256: d37eeb2e1494e69d083d486331423eca83c4f8a4e6a98545a71c622fb63aa550

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

namespace :current_user do
  desc "Show a path to the sign in page"
  task :sign_in_path => :environment  do
    key =  ::CurrentUser.authentication_key

    unless key.blank?
      # TODO: use route helpers.
      puts "/current_user/#{key}/sign_in"
    else
      puts 'Error: there is no authentication key. Check out config/current_user/key file.'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
current_user-0.0.1 lib/tasks/current_user_tasks.rake