require 'rails/generators'

module Mongoid
  module Duplicable
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      desc 'Generates mongoid-duplicable gem initializer.'

      def install
        template 'initializer.rb', 'config/initializers/mongoid-duplicable.rb'
      end
    end
  end
end
