docbrown/app/models/settings
Mac Siri e38196df6f
Create Settings::SMTP (#13943)
* Fix typo

* Add SMTP configs to Settings::General

* Expand Settings's show page

* Expand Settings::General's constants

* Move smtp_enabled? logic to ApplicationMailer

* Apply suggestions from code review

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>

* Add missing descriptions and placeholders

* Remove production guard clause

* Change delivery_method to a callback

* Create Settings::SMTP

* Run migration

* Move constants

* Remove SMTP from Settings::General

* Create SMTPSettingsController

* Add back guard clause

* Change which perform_deliveries configuration to use from

* Update config/environments/production.rb

* Rename migration to singular

* Run migration again

* Fix name

* Alphabetize and add validation for authentication

* Move settings and enabled? logic to Settings::SMTP

* Change after_action to before_action

* Fix broken spec

* Fix broken spec

* Create SMTP specs

* Provide default for port

* Create spec for ApplicationMailer

* Fix broken spec

* Move smtp_enabled?

* Search and replace

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2021-06-14 10:29:43 -04:00
..
authentication.rb Split Settings::Authentication from SiteConfig (#13095) 2021-04-12 09:41:09 +02:00
campaign.rb Split Settings::Campaign from SiteConfig (#13238) 2021-04-19 10:01:03 +07:00
community.rb Split Settings::Community from SiteConfig (#13403) 2021-04-26 10:46:35 +02:00
general.rb Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
mandatory.rb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
rate_limit.rb Replace MAX_USER_MENTIONS with Settings::RateLimit.mention_creation (#13736) 2021-05-12 08:16:38 -07:00
smtp.rb Create Settings::SMTP (#13943) 2021-06-14 10:29:43 -04:00
user_experience.rb Split Settings::UserExperience (#13495) 2021-04-28 13:29:25 +07:00