lib/generators/goma/scaffold_controller/templates/unlock_controller.rb in goma-0.0.1.gamma vs lib/generators/goma/scaffold_controller/templates/unlock_controller.rb in goma-0.0.1.rc1

- old
+ new

@@ -7,9 +7,10 @@ # GET <%= route_url %>/1 def show @<%= resource_name %>, err = <%= resource_class_name %>.load_from_unlock_token_with_error(params[:id]) if @<%= resource_name %> + @<%= resource_name %>.unlock_access! flash[:notice] = "Your account has been unlocked successfully. Please continue to login." redirect_to <%= login_url %> else if err == :token_expired flash.now[:alert] = "The unlock URL you visited has expired, please request a new one."