Sha256: ed32c388e1644fde7872f5d4cef8ca4e0fd646ea41567552544ba3abbc9ff641

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

module ActiveHashRelation
  module Generators
    class InitializeGenerator < Rails::Generators::Base
      desc "This generator creates an initializer file at config/initializers"

      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      def create_initializer_file
        template 'active_hash_relation.rb', 'config/initializers/active_hash_relation.rb'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_hash_relation-1.4.1 lib/generators/active_hash_relation/initialize_generator.rb
active_hash_relation-1.4.0 lib/generators/active_hash_relation/initialize_generator.rb
active_hash_relation-1.2.0 lib/generators/active_hash_relation/initialize_generator.rb