Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix to conditional code

  • Loading branch information...
commit 495300ebf79bcc20165e5995703a929930fe5804 1 parent 4692acf
aledalgrande authored
View
2  authlogic_generator.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{authlogic_generator}
- s.version = "0.5.3"
+ s.version = "0.5.4"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Alessandro Dal Grande", "Marco Sanson"]
View
2  generators/authlogic_generator/templates/controllers/password_resets_controller.rb
@@ -16,7 +16,7 @@ def create
flash[:notice] = "Instructions to reset your password have been emailed to you. " +
"Please check your email."
redirect_to new_user_session_path
- <% if !options[:skip_activation] %>
+ <% if options[:skip_activation].empty? %>
elsif @user && !@user.active?
@user.deliver_activation_instructions!
flash[:error] = 'Activation needed'
Please sign in to comment.
Something went wrong with that request. Please try again.