Sha256: f80d5b390fc0b4de91fe9fcdddd67d8dfb1b40f433b52191f2d090d8e7a1e0aa

Contents?: true

Size: 283 Bytes

Versions: 24

Compression:

Stored size: 283 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

24 entries across 24 versions & 1 rubygems

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