Sha256: 1a86efd4261f0502ebe42857e552755550137b7943fadef691e64b29ecacc16d

Contents?: true

Size: 389 Bytes

Versions: 16

Compression:

Stored size: 389 Bytes

Contents

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

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

    def copy_delivery_model
      copy_file "delivery.rb", "app/models/delivery.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/copy_models/copy_models_generator.rb
simple_notifications-1.2.4 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.2.3 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.2.2 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.2.1 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.9 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.8 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.7 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.6 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.5 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.4 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.3 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.2 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.1 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.1.0 lib/generators/simple_notifications/copy_models/copy_models_generator.rb
simple_notifications-1.0.4 lib/generators/simple_notifications/copy_models/copy_models_generator.rb