Skip to content

Commit

Permalink
Remove Deprecated Email Validator
Browse files Browse the repository at this point in the history
The email validator was deprecated Mar 15th 2018 almost 18 months ago
as part of: 6d8fd3c

The deprecation warning was part of v2.6.0rc1, and remains to this day
in v2.10.0.beta1 I think it's time to remove it altogether. It's been
4 minor version upgrades now.
  • Loading branch information
JDutil committed Oct 23, 2019
1 parent 7363581 commit c0f3105
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 85 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Solidus 2.10.0 (master, unreleased)

### Core

- Removes Deprecated EmailValidator [#3395](https://github.com/solidusio/solidus/pull/3395) ([JDutil](https://github.com/JDutil))

## Solidus 2.9.0 (2019-07-16)

### Major Changes
Expand Down
1 change: 0 additions & 1 deletion core/app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def states
before_create :link_by_email

validates :email, presence: true, if: :require_email
validates :email, 'spree/email' => true, allow_blank: true
validates :guest_token, presence: { allow_nil: true }
validates :number, presence: true, uniqueness: { allow_blank: true }
validates :store_id, presence: true
Expand Down
1 change: 0 additions & 1 deletion core/lib/spree/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class GatewayError < RuntimeError; end
require 'spree/core/role_configuration'
require 'spree/core/state_machines'
require 'spree/core/stock_configuration'
require 'spree/core/validators/email'
require 'spree/permission_sets'

require 'spree/preferences/store'
Expand Down
30 changes: 0 additions & 30 deletions core/lib/spree/core/validators/email.rb

This file was deleted.

53 changes: 0 additions & 53 deletions core/spec/lib/spree/core/validators/email_spec.rb

This file was deleted.

0 comments on commit c0f3105

Please sign in to comment.