Skip to content

Instantly share code, notes, and snippets.

@rewinfrey
Last active December 19, 2015 07:59
Show Gist options
  • Save rewinfrey/5922860 to your computer and use it in GitHub Desktop.
Save rewinfrey/5922860 to your computer and use it in GitHub Desktop.
Creating a featured provider
role_name = "featured_provider"
role = Authorization::Role.create(name: "featured_provider")
role.add_permission!(:'account:provider:featured')
Authorization::Role.add_member_to_role(member, role_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment