Sha256: 9162e1d5fd646164a38ad593a516a5d785eec5a8e5c7b8df89a6f179e63bebb6
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true require_relative 'base' module Bankai module Generators # :nodoc: class MailerGenerator < Base def configure_letter_opener inject_into_file( 'config/environments/development.rb', configuration, after: '# config.action_cable.disable_request_forgery_protection = true' ) end private def configuration <<-RUBY config.action_mailer.delivery_method = :letter_opener config.action_mailer.perform_deliveries = true RUBY end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bankai-0.13.1 | lib/bankai/generators/mailer_generator.rb |
bankai-0.13.0 | lib/bankai/generators/mailer_generator.rb |