Sha256: ec3418a03f5836042cc09cf2864f980db3208a84bfdd757a07ffff5bf431d2a1

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

require 'rails/generators/base'

module ModelBase
  class InstallGenerator < ::Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    desc "Generate files to work with model_base"

    def generate_files
      [
        'app/controllers/concerns/authentication.rb',
        'spec/factories/users.rb',
        'spec/support/controller_macros.rb',
        'spec/support/devise.rb',
        'spec/support/field_assertions.rb',
      ].each{|f| template f, f }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
model_base_generators-0.3.2 lib/generators/model_base/install_generator.rb
model_base_generators-0.3.1 lib/generators/model_base/install_generator.rb
model_base_generators-0.3.0 lib/generators/model_base/install_generator.rb