* 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>
16 lines
638 B
Ruby
16 lines
638 B
Ruby
# Be sure to restart your server when you modify this file.
|
|
|
|
# Add new inflection rules using the following format. Inflections
|
|
# are locale specific, and you may define rules for as many different
|
|
# locales as you wish. All of these examples are active by default:
|
|
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
# inflect.plural /^(ox)$/i, '\1en'
|
|
# inflect.singular /^(ox)en/i, '\1'
|
|
# inflect.irregular 'person', 'people'
|
|
# inflect.uncountable %w( fish sheep )
|
|
# end
|
|
|
|
# These inflection rules are supported but not enabled by default:
|
|
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
inflect.acronym "SMTP"
|
|
end
|