summaryrefslogtreecommitdiff
path: root/app/models/email.rb
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-2/+1
| | | | Updates changed method names and fixes spec failures
* Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas2019-03-281-1/+1
|
* Align EmailValidator to validate_email gem implementation.Horatiu Eugen Vlad2019-03-051-1/+1
| | | | | | Renamed EmailValidator to DeviseEmailValidator to avoid 'email:' naming collision with ActiveModel::Validations::EmailValidator in 'validates' statement. Make use of the options attribute of the parent class ActiveModel::EachValidator. Add more options: regex.
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-0/+2
| | | | Partially addresses #47424.
* fixes #47716 where email confirmation fails after adding additional emailsMuhammad Nuzaihan2018-07-251-0/+4
|
* Use fuzzy search with minimum length of 3 characters where appropriatedm-search-patternDouwe Maan2017-11-271-0/+1
|
* use a delegate for `username` to be more future friendlyBrett Walker2017-10-271-0/+2
|
* must now set the devise default scope (since we now have an :email scope)Brett Walker2017-09-241-1/+1
| | | | and rubocop fixes
* added email.confirmed scope and fix email comparisonBrett Walker2017-09-231-1/+3
|
* when user verifies a secondary email, revalidate GPG signaturesBrett Walker2017-09-231-0/+7
|
* Send a confirmation email when the user adds a secondary email address. ↵Brett Walker2017-09-231-0/+3
| | | | Utilizes the Devise `confirmable` capabilities. Issue #37385
* refactor(email): use setter method instead AR callbacksSemyon Pupkov2016-10-231-4/+2
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-11/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Annotate the modelsZeger-Jan van de Weg2016-05-061-1/+1
|
* Re-add EmailValidator to avoid the repetition of format: { with: ↵streamline-email-validationRémy Coutable2016-02-091-1/+1
| | | | Devise.email_regexp }
* Validate email addresses using Devise.email_regexpRémy Coutable2016-02-091-1/+1
| | | | | | | Also: - Get rid of legacy :strict_mode - Get rid of custom :email validator - Add some shared examples to spec emails validation
* Allow primary email to be set to an email that you've already added.change-primary-emailDouwe Maan2015-04-301-5/+0
|
* Explicitly define ordering in models using default_scopeDmitriy Zaporozhets2015-02-051-0/+2
|
* User model to strong params. Comment other attr_accessible to let tests runDmitriy Zaporozhets2014-06-261-8/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-4/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove EmailsObserverDmitriy Zaporozhets2014-04-021-3/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add email aliases for usersJason Hollingsworth2014-02-131-0/+33
Emails are used to associate commits with users. The emails are not verified and don't have to be valid email addresses. They are assigned on a first come, first serve basis. Notifications are sent when an email is added.