diff options
author | Dwight Watson <dwightwatson@me.com> | 2017-11-14 10:16:27 +1100 |
---|---|---|
committer | Dwight Watson <dwightwatson@me.com> | 2017-11-14 10:16:27 +1100 |
commit | 908aaa650eadde6f732f7df6c6dcc4caaaf1c8d6 (patch) | |
tree | 7f81ea81288eedf6dd3927dcdb686cf45ef91d45 /actionmailer/lib | |
parent | 704a7e425ca99af1b778c764a86e5388647631dd (diff) | |
download | rails-908aaa650eadde6f732f7df6c6dcc4caaaf1c8d6.tar.gz rails-908aaa650eadde6f732f7df6c6dcc4caaaf1c8d6.tar.bz2 rails-908aaa650eadde6f732f7df6c6dcc4caaaf1c8d6.zip |
Sort mailer previews
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/preview.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/preview.rb b/actionmailer/lib/action_mailer/preview.rb index 730ac89c94..0aea84fd2b 100644 --- a/actionmailer/lib/action_mailer/preview.rb +++ b/actionmailer/lib/action_mailer/preview.rb @@ -104,7 +104,7 @@ module ActionMailer private def load_previews if preview_path - Dir["#{preview_path}/**/*_preview.rb"].each { |file| require_dependency file } + Dir["#{preview_path}/**/*_preview.rb"].sort.each { |file| require_dependency file } end end |