Sha256: ffc1b179d36f055bb742e1b9d70c857bcd4f889cc2602a9eec1ce0115a7a73a8

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

class SolidErrors::InstallGenerator < Rails::Generators::Base
  source_root File.expand_path("templates", __dir__)

  class_option :skip_migrations, type: :boolean, default: nil, desc: "Skip migrations"

  def create_migrations
    unless options[:skip_migrations]
      rails_command "railties:install:migrations FROM=solid_errors", inline: true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solid_errors-0.2.5 lib/generators/solid_errors/install/install_generator.rb
solid_errors-0.2.4 lib/generators/solid_errors/install/install_generator.rb
solid_errors-0.2.3 lib/generators/solid_errors/install/install_generator.rb
solid_errors-0.2.2 lib/generators/solid_errors/install/install_generator.rb