class HappySeed::Generators::HtmlEmailGenerator

Public Class Methods

fingerprint() click to toggle source
# File lib/generators/happy_seed/html_email/html_email_generator.rb, line 9
def self.fingerprint
  gem_available? 'premailer-rails'
end

Public Instance Methods

install_html_email() click to toggle source
# File lib/generators/happy_seed/html_email/html_email_generator.rb, line 13
def install_html_email
  return if already_installed

  gem 'premailer-rails'
  gem 'nokogiri'

  Bundler.with_clean_env do
    run "bundle install --without production"
  end

  run 'bin/spring stop'

  remove_file 'app/views/layouts/mailer.html.erb'

  directory "."

end