Sha256: e799be905519fb6b9962b4791713a5308aee52edf591535b2a84cb86e606b312

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

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

    def create_migration_file
      rake "approval_engine:install:migrations"
    end

    def create_initializer
      copy_file "initializer.rb.tt", "config/initializers/approval.rb"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
approval-0.7.1 lib/generators/approval/install_generator.rb
approval-0.7.0 lib/generators/approval/install_generator.rb
approval-0.6.1 lib/generators/approval/install_generator.rb
approval-0.6.0 lib/generators/approval/install_generator.rb
approval-0.5.0 lib/generators/approval/install_generator.rb
approval-0.4.0 lib/generators/approval/install_generator.rb
approval-0.3.7 lib/generators/approval/install_generator.rb
approval-0.3.6 lib/generators/approval/install_generator.rb