mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Use Rails.env.local? shorthand method to check env (#27519)
This commit is contained in:
@@ -488,7 +488,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def validate_email_dns?
|
||||
email_changed? && !external? && !(Rails.env.test? || Rails.env.development?)
|
||||
email_changed? && !external? && !Rails.env.local? # rubocop:disable Rails/UnknownEnv
|
||||
end
|
||||
|
||||
def validate_role_elevation
|
||||
|
||||
Reference in New Issue
Block a user