Sha256: 224fd9d8668c746437b6021b07ca89bd82f0ad8172e7f2c1ab52366c73d10e51

Contents?: true

Size: 252 Bytes

Versions: 7

Compression:

Stored size: 252 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

7 entries across 7 versions & 1 rubygems

Version Path
active_generator-4.0.6 lib/generators/initializer/initializer_generator.rb
active_generator-4.0.5 lib/generators/initializer/initializer_generator.rb
active_generator-4.0.4 lib/generators/initializer/initializer_generator.rb
active_generator-4.0.3 lib/generators/initializer/initializer_generator.rb
active_generator-4.0.2 lib/generators/initializer/initializer_generator.rb
active_generator-4.0.1 lib/generators/initializer/initializer_generator.rb
active_generator-4.0.0 lib/generators/initializer/initializer_generator.rb