class FlashRailsMessages::Generators::InstallGenerator

Public Instance Methods

install_info() click to toggle source
# File lib/generators/flash_rails_messages/install_generator.rb, line 9
def install_info
  return if options.bootstrap? || options.foundation?
  puts 'FlashRailsMessages supports Bootstrap and Zurb Foundation 3. If you want '\
    'a configuration that is compatible with one of these frameworks, then please ' \
    're-run this generator with --bootstrap or --foundation as an option.'
end
install_initializer() click to toggle source
# File lib/generators/flash_rails_messages/install_generator.rb, line 16
def install_initializer
  if options.bootstrap?
    template 'config/initializers/flash_rails_messages_bootstrap.rb'
  elsif options.foundation?
    template 'config/initializers/flash_rails_messages_foundation.rb'
  end
end