Sha256: 4636761505ca95bb1349cbb0de21b79253e2f1f1802aa5a7ec6c2640927b6f38

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

require 'rails/generators'

module Proselytism
  class InitializerGenerator < Rails::Generators::Base

    self.source_paths << File.join(File.dirname(__FILE__), 'templates')


    desc "Generate an initializer file to override the configuration file"
    def create_initializer_file
      template 'initializer.rb', 'config/initializers/proselytism.rb'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
proselytism-0.0.3 lib/generators/proselytism/initializer_generator.rb
proselytism-0.0.2 lib/generators/proselytism/initializer_generator.rb
proselytism-0.0.1 lib/generators/proselytism/initializer_generator.rb