Sha256: b1c900fe04090d317137393af6fc8f270177056052bd81382459a4c15b278d55

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

module Pah
  module Templates
    class LetterOpener < Pah::Template
      def call
        letter_opener_config = <<LETTER_OPENER

  # Letter openner config
  config.action_mailer.delivery_method = :letter_opener
  config.action_mailer.default_url_options = { :host => 'localhost:3000' }
LETTER_OPENER

        inject_into_file 'config/environments/development.rb', letter_opener_config,  before: /^end/, verbose: false

        git add: 'config/environments/development.rb'
        git_commit 'Add letter_opener config.'
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/templates/letter_opener.rb
pah-0.0.27 lib/pah/templates/letter_opener.rb
pah-0.0.26 lib/pah/templates/letter_opener.rb
pah-0.0.25 lib/pah/templates/letter_opener.rb
pah-0.0.24 lib/pah/templates/letter_opener.rb
pah-0.0.23 lib/pah/templates/letter_opener.rb
pah-0.0.22 lib/pah/templates/letter_opener.rb
pah-0.0.21 lib/pah/templates/letter_opener.rb
pah-0.0.20 lib/pah/templates/letter_opener.rb
pah-0.0.19 lib/pah/templates/letter_opener.rb
pah-0.0.17 lib/pah/templates/letter_opener.rb
pah-0.0.16 lib/pah/templates/letter_opener.rb