Module: Travis::Mailer

Defined in:
lib/travis/mailer.rb,
lib/travis/mailer/build.rb,
lib/travis/mailer/helper/build.rb

Defined Under Namespace

Modules: Helper Classes: Build

Class Method Summary collapse

Class Method Details

.base_dirObject



19
20
21
# File 'lib/travis/mailer.rb', line 19

def base_dir
  @base_dir = Pathname.new(File.expand_path('../mailer', __FILE__))
end

.setupObject



14
15
16
17
# File 'lib/travis/mailer.rb', line 14

def setup
  ActionMailer::Base.append_view_path(base_dir.join('views').to_s)
  I18n.load_path += Dir[base_dir.join('locales/**/*.yml')]
end