discourse/config/initializers/000-rails-master-polyfills.rb
2015-12-09 11:48:41 +11:00

6 lines
142 B
Ruby

if Rails.version < "4.2.0"
class Mail::Message
alias_method :deliver_now, :deliver
alias_method :deliver_now!, :deliver!
end
end