Sha256: 98135d032a07b1ea40fea07a71800a12375d6e15475d98eda7dab4ee2cc1dd8e

Contents?: true

Size: 319 Bytes

Versions: 8

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Pundit
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
pundit-2.4.0 lib/generators/pundit/install/install_generator.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/pundit/install/install_generator.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/pundit/install/install_generator.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/pundit/install/install_generator.rb
pundit-2.3.1 lib/generators/pundit/install/install_generator.rb
pundit-2.3.0 lib/generators/pundit/install/install_generator.rb
pundit-2.2.0 lib/generators/pundit/install/install_generator.rb
pundit-2.1.1 lib/generators/pundit/install/install_generator.rb