Sha256: bb4bf64a1f70e366c0333570a09a73968ef5f6f83706696fe28014c293d3ef05

Contents?: true

Size: 251 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
active_generator-2.2.8 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.7 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.6 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.5 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.4 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.3 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.2 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.1 lib/generators/initializer/initializer_generator.rb
active_generator-2.2.0 lib/generators/initializer/initializer_generator.rb
active_generator-2.1.0 lib/generators/initializer/initializer_generator.rb
active_generator-2.0.11 lib/generators/initializer/initializer_generator.rb