aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2014-08-14 10:50:46 +0000
committerAbdelkader Boudih <terminale@gmail.com>2014-08-14 10:55:12 +0000
commitb937ea893e5ad22f53a244ac17d085c1d40fdcc2 (patch)
tree17e5c33e370449af9801200d1c48086c649660ad /actionmailer/lib/action_mailer
parentb6496713e9fb2e5e34716662087418931564646b (diff)
downloadrails-b937ea893e5ad22f53a244ac17d085c1d40fdcc2.tar.gz
rails-b937ea893e5ad22f53a244ac17d085c1d40fdcc2.tar.bz2
rails-b937ea893e5ad22f53a244ac17d085c1d40fdcc2.zip
Make ActionMailer::Previews methods class methods.
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r--actionmailer/lib/action_mailer/preview.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/preview.rb b/actionmailer/lib/action_mailer/preview.rb
index 33de1dc049..44cf6665ba 100644
--- a/actionmailer/lib/action_mailer/preview.rb
+++ b/actionmailer/lib/action_mailer/preview.rb
@@ -22,7 +22,9 @@ module ActionMailer
# :nodoc:
mattr_accessor :preview_interceptors, instance_writer: false
self.preview_interceptors = []
+ end
+ module ClassMethods
# Register one or more Interceptors which will be called before mail is previewed.
def register_preview_interceptors(*interceptors)
interceptors.flatten.compact.each { |interceptor| register_preview_interceptor(interceptor) }