Sha256: 6c220efaec4e06b3c88bdea6b768945842a94d2bf3c99d7c60efb9885cd3d496

Contents?: true

Size: 176 Bytes

Versions: 6

Compression:

Stored size: 176 Bytes

Contents

class BasePolicy < Canner::Policy

  # results expected to be an array or strings or symbols that represent the user roles
  def fetch_roles
    @current_user.roles
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
canner-0.4.0 lib/generators/canner/fetch_roles/templates/base_policy.rb
canner-0.3.0 lib/generators/canner/fetch_roles/templates/base_policy.rb
canner-0.2.2 lib/generators/canner/fetch_roles/templates/base_policy.rb
canner-0.2.1 lib/generators/canner/fetch_roles/templates/base_policy.rb
canner-0.2.0 lib/generators/canner/fetch_roles/templates/base_policy.rb
canner-0.1.0 lib/generators/canner/fetch_roles/templates/base_policy.rb