Sha256: 024b5ad97f99419124756ffd32464ad2339782e76ddba62c471c5d3dea630243

Contents?: true

Size: 336 Bytes

Versions: 25

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

# Policy for <%= class_name %> model
<% module_namespacing do -%>
  # Policy for <%= MODULE_CLASS_NAME %> model
  class <%= MODULE_CLASS_NAME %>Policy < ControllerPolicy
    attr_reader :user, :objects

    def initialize(user, objects)
      @user = user
      @objects = objects
    end
  end
<% end -%>

Version data entries

25 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.21 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.20 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.19 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.18 testing-with-2.1.18/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.18 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.17 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.16 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.15 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.14 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.13 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.12 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.11 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.10 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.9 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.8 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.7 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.6 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.5 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.4 installer/core/lib/plugins/generators/keppler_scaffold/templates/policies/policy.rb