Sha256: b505c1f9a5d2faedc57d7499fa0fbdadc0795404fc9ca39e2e7e725399e0988e

Contents?: true

Size: 251 Bytes

Versions: 2

Compression:

Stored size: 251 Bytes

Contents

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

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_generator-2.4.0 lib/generators/initializer/initializer_generator.rb
active_generator-2.3.1 lib/generators/initializer/initializer_generator.rb