openstax / openstax_utilities

Utlities for OpenStax sites
MIT License
2 stars 0 forks source link

Added AccessPolicy to utilities #1

Closed Dantemss closed 10 years ago

Dantemss commented 10 years ago

This change will namespace AccessPolicy to OSU::AccessPolicy. I will make pull requests for OSA and OSE to change this once this is published.

Dantemss commented 10 years ago

AccessPolicy now has a method_missing matcher for _allowed? e.g. read_allowed?

Controllers get a require_restful_actions_allowed? to call AccessPolicy for show, new, create, edit, update and destroy.

jpslav commented 10 years ago

released 2.1.0, added travis config and enabled travis build (didn't add badge to readme)