Class: WhitelistRecipients::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/whitelist_recipients/install_generator.rb

Overview

generate a whitelist_recipients.rb file in initializers

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



8
9
10
# File 'lib/generators/whitelist_recipients/install_generator.rb', line 8

def copy_initializer
  template 'initializer.rb', 'config/initializers/whitelist_recipients.rb'
end