Sha256: e00639ca9a7411c4771c2ce5b6be3fc224a77dc6ac18f2c591015044362472ae

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

class <%= role.to_s.camelize %>RolePermit < CanTango::PermitEngine::RolePermit
  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

1 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 lib/generators/cantango/role_permit/templates/role_permit.erb