app/models/user.rb
# Activates the user in the database.
Activates the user in the database.
Activates the user in the database .
def activate!
        @activated = true
        self.activated_at = Time.now.utc
        self.activation_code = nil
        save(false)
    end
def activate! @activated = true self . activated_at = Time . now . utc self . activation_code = nil save ( false ) end
Activates the user in the database.
Activates the user in the database .