kenn-userify 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -35,7 +35,7 @@ task :default => ['test:all', 'test:features']
35
35
 
36
36
  gem_spec = Gem::Specification.new do |gem_spec|
37
37
  gem_spec.name = "userify"
38
- gem_spec.version = "0.1.8"
38
+ gem_spec.version = "0.1.9"
39
39
  gem_spec.summary = "Super simple authentication system for Rails, using username, email and password."
40
40
  gem_spec.email = "kenn.ejima <at> gmail.com"
41
41
  gem_spec.homepage = "http://github.com/kenn/userify"
@@ -34,7 +34,7 @@ class Userify::UserController < ApplicationController
34
34
  case request.method
35
35
 
36
36
  when :get
37
- store_location(true)
37
+ store_location(true) if session[:return_to].blank?
38
38
  render :template => 'user/signin'
39
39
 
40
40
  when :post
@@ -67,7 +67,7 @@ module Userify
67
67
 
68
68
  def deny_access(flash_message = nil, opts = {})
69
69
  store_location
70
- flash[:failure] = flash_message if flash_message
70
+ flash[:error] = flash_message if flash_message
71
71
  redirect_to signin_url
72
72
  end
73
73
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kenn-userify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenn Ejima
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-07 00:00:00 -07:00
12
+ date: 2009-06-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15