discourse/config/initializers/000-rails-master-polyfills.rb

7 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