Sha256: 5357a650c1ae37d12ec0f22417bc105457ccc248d8ddb16787de32a4728dfb10

Contents?: true

Size: 393 Bytes

Versions: 16

Compression:

Stored size: 393 Bytes

Contents

module SimpleNotifications
  class CopyModelsGenerator < Rails::Generators::Base
    source_root File.expand_path('../../../lib/simple_notifications/app/models', __dir__)

    def copy_notification_model
      copy_file "simple_notifications.rb", "app/models/simple_notifications.rb"
    end

    def copy_delivery_model
      copy_file "deliver.rb", "app/models/deliver.rb"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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