Class: VerificationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/generator/verifications_controller.rb

Instance Method Summary collapse

Instance Method Details

#create ⇒ Object



5
6
7
8
9
# File 'lib/generator/verifications_controller.rb', line 5

def create
  @user.update_attribute(:verified, true)
  # You could send another message acknowledging the verification
  head :ok
end