Sha256: ee12a23dcdafdfd67565779413b2c01faaa01b19d6df9679cc1c2f481c907712

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

require 'rails/generators'
module PunditLogger
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../../templates", __FILE__)
      desc 'Creates Pundit::Logger initializer for your application'

      def copy_initializer
        template 'default_initializer.rb',
          'config/initializers/pundit_logger.rb'

        puts "View the created file for configuration options.\n" \
             "Now you know what Pundit\'s up to!"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pundit_logger-0.1.1 lib/generators/pundit_logger/install_generator.rb
pundit_logger-0.1.0 lib/generators/pundit_logger/install_generator.rb