Sha256: 3bb76ff3ba0e0e1206350296c8821e17874381cf3b596ececf1c5420c35f0b21

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

module Pundit
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      def copy_application_policy
        template 'application_policy.rb', 'app/policies/application_policy.rb'
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/pundit-1.1.0/lib/generators/pundit/install/install_generator.rb
pundit-1.1.0 lib/generators/pundit/install/install_generator.rb
pundit-1.0.1 lib/generators/pundit/install/install_generator.rb
pundit-1.0.0 lib/generators/pundit/install/install_generator.rb
pundit-0.3.0 lib/generators/pundit/install/install_generator.rb
pundit-0.2.3 lib/generators/pundit/install/install_generator.rb
pundit-0.2.2 lib/generators/pundit/install/install_generator.rb
pundit-0.2.1 lib/generators/pundit/install/install_generator.rb
pundit-0.2.0 lib/generators/pundit/install/install_generator.rb
pundit-0.1.0 lib/generators/pundit/install/install_generator.rb