Sha256: 886b63d3f9bf0a917351da33f10b1e898339f7f9fab13207e684a97a7ba3feb5

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

class InitializerGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def copy_initializer_file
    copy_file('initializer.rb'.freeze, File.join('config/initializers'.freeze, class_path, "#{file_name}.rb"))
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_generator-2.3.0 lib/generators/initializer/initializer_generator.rb