Sha256: fef073539089752db98df657992db35447f10bfc6c7efb8c6cb19e3e42cf890e

Contents?: true

Size: 275 Bytes

Versions: 16

Compression:

Stored size: 275 Bytes

Contents

class <%= permit_name.to_s.camelize %>RolePermit < CanTango::RolePermit
  def initialize ability
    super
  end

  protected

  def permit_rules
    # insert your can, cannot and any other rule statements here
    <%= rules_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/role_permit/templates/role_permit.erb
cantango-0.9.4 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.9.3.2 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.9.5 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.9.4 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.9.3 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.9.2 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.9.1 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.9 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.8.1 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.8 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.7 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.6.2 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.6.1 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.6 lib/generators/cantango/role_permit/templates/role_permit.erb
cantango-0.8.5.1 lib/generators/cantango/role_permit/templates/role_permit.erb