Sha256: 6c9ed568e4234bf37e29c6bb0b766a458fed9894300a675c3cd5cd818ea1c77c

Contents?: true

Size: 414 Bytes

Versions: 17

Compression:

Stored size: 414 Bytes

Contents

module SimpleNotifications
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('templates', __dir__)

    def copy_initializer_file
      copy_file "initializer.rb", "config/initializers/simple_notifications.rb"
    end

    def create_migration_file
      copy_file "migration.rb", "db/migrate/#{Time.now.strftime("%Y%m%d%H%M%S")}_create_simple_notifications.rb"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
simple_notifications-1.2.5 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.2.4 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.2.3 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.2.2 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.2.1 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.9 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.8 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.7 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.6 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.5 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.4 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.3 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.2 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.1 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.1.0 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.0.4 lib/generators/simple_notifications/install/install_generator.rb
simple_notifications-1.0.3 lib/generators/simple_notifications/install/install_generator.rb