app/controllers/registrations_controller.rb in devise-1.0.9 vs app/controllers/registrations_controller.rb in devise-1.0.10

- old
+ new

@@ -1,17 +1,17 @@ class RegistrationsController < ApplicationController prepend_before_filter :require_no_authentication, :only => [ :new, :create ] prepend_before_filter :authenticate_scope!, :only => [:edit, :update, :destroy] include Devise::Controllers::InternalHelpers - # GET /resource/sign_in + # GET /resource/sign_up def new build_resource render_with_scope :new end - # POST /resource/sign_up + # POST /resource def create build_resource if resource.save set_flash_message :notice, :signed_up @@ -48,6 +48,6 @@ # Authenticates the current scope and dup the resource def authenticate_scope! send(:"authenticate_#{resource_name}!") self.resource = send(:"current_#{resource_name}").dup end -end \ No newline at end of file +end