Sha256: 18db35e44e5d2515432bf5a977aa402d4da76483e58b85a975ea20756e58cb6e

Contents?: true

Size: 238 Bytes

Versions: 8

Compression:

Stored size: 238 Bytes

Contents

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cancan-permits-0.3.0 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.9 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.8 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.7 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.5 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.3 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.2 lib/generators/permits/templates/permit.rb
cancan-permits-0.2.1 lib/generators/permits/templates/permit.rb