Sha256: d517a1d7f948a1573e577ea5bab5138b91e9809f376cbe555f147b7c65ae90c7

Contents?: true

Size: 278 Bytes

Versions: 16

Compression:

Stored size: 278 Bytes

Contents

class <%= account.to_s.camelize %>AccountPermit < CanTango::AccountPermit
  def initialize ability
    super
  end

  protected

  def permit_rules
    # insert your can, cannot and any other rule statements here
    <%= permit_logic.strip %>
    <%= license_logic %>
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cantango-0.9.4.1 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.9.4 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.9.3.2 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.9.5 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.9.4 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.9.3 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.9.2 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.9.1 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.9 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.8.1 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.8 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.7 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.6.2 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.6.1 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.6 lib/generators/cantango/account_permit/templates/account_permit.erb
cantango-0.8.5.1 lib/generators/cantango/account_permit/templates/account_permit.erb