Sha256: e29f6397e2916d79b15b078e97bc3db82fdbed4475428aae6de85fe0018c7090

Contents?: true

Size: 584 Bytes

Versions: 42

Compression:

Stored size: 584 Bytes

Contents

module Virgo
  class Users::ConfirmationsController < Devise::ConfirmationsController
    def create
      self.resource = resource_class.send_confirmation_instructions(resource_params)

      if successfully_sent?(resource)
        respond_with({}, :location => virgo.after_resending_confirmation_instructions_path_for(resource_name))
      else
        respond_with(resource)
      end
    end

    def resource_params
      params[:user].present? ? params.require(:user).permit(:email, :login, :password,
      :password_confirmation, :reset_password_token) : {}
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
virgo-0.3.17 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.16 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.15 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.14 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.13 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.12 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.11 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.10 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.9 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.8 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.7 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.6 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.4 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.3 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.2 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3.1 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.3 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.2.9 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.2.8 app/controllers/virgo/users/confirmations_controller.rb
virgo-0.2.7 app/controllers/virgo/users/confirmations_controller.rb