Sha256: c60d77dd23d1536b72ebf7a4468ce3acc4c9487951ac9e00ba5047b00b9ea1d5

Contents?: true

Size: 197 Bytes

Versions: 11

Compression:

Stored size: 197 Bytes

Contents

class <%= permit_name.to_s.camelize %>Permit < Permit::Base
  def initialize(ability, options = {})
    super
  end

  def permit?(user, options = {})
    super
    <%= permit_logic %>
  end  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cancan-permits-0.3.12 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.11 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.10 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.9 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.8 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.7 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.6 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.5 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.4 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.2 lib/generators/cancan/permits/templates/permit.rb
cancan-permits-0.3.1 lib/generators/permits/templates/permit.rb