Sha256: 253aaae885ec98ff490811631a53527e2211c0772ca6f3161c680c3029a116be

Contents?: true

Size: 284 Bytes

Versions: 79

Compression:

Stored size: 284 Bytes

Contents

<% module_namespacing do -%>
# Policy for <%= controller_class_name.singularize %> model
class <%= controller_class_name.singularize %>Policy < ControllerPolicy
  attr_reader :user, :objects

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

Version data entries

79 entries across 31 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.22 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.22 installer/core/rockets/keppler_frontend/lib/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.21 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/lib/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.21 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.20 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/lib/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.20 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.19 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/lib/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.19 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.18 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/lib/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.18 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.17 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/lib/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.17 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb
keppler-2.1.16 installer/core/rockets/keppler_capsules/lib/generators/keppler_capsule_scaffold/templates/policies/policy.rb
keppler-2.1.16 installer/plugins/generators/keppler_scaffold/templates/policies/policy.rb