Sha256: 2904635b8b707671d86fd0c667111c769a7ea104d0bfe45724c1e4f4d7e73f4b

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

require 'action_mailer'
require 'i18n'
require 'pathname'

module Travis
  module Mailer
    autoload :Build, 'travis/mailer/build'

    module Helper
      autoload :Build, 'travis/mailer/helper/build'
    end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
travis-core-0.0.1 lib/travis/mailer.rb