Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation on Role#resource_type #303

Merged

Conversation

maurogeorge
Copy link
Contributor

With this will avoid add a permission to a model that don't call the
resourcify.

Now every model that call resourcify has his name saved and can be
found on the Rolify.resource_types.

Since the Role model is generated by the generator it is possible to
remove this validation.

With this will avoid add a permission to a model that don't call the
`resourcify`.

Now every model that call `resourcify` has his name saved and can be
found on the `Rolify.resource_types`.

Since the Role model is generated by the generator it is possible to
remove this validation.
@coveralls
Copy link

Coverage Status

Coverage increased (+18.54%) when pulling df41b09 on maurogeorge:validation-resource_type into b03d10a on RolifyCommunity:master.

@wldcordeiro
Copy link
Member

Thanks for the PR! Looks all good. Merging into master now. 👍

wldcordeiro added a commit that referenced this pull request Dec 30, 2014
@wldcordeiro wldcordeiro merged commit 5856f46 into RolifyCommunity:master Dec 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants