README.md in petergate-0.1.9 vs README.md in petergate-0.1.10
- old
+ new
@@ -1,10 +1,11 @@
# Petergate
-Simple User Authorizations.
+Easy to use and read action and content based authorizations.
-## Installation
+Installation
+------
Add this line to your application's Gemfile:
gem 'petergate'
@@ -26,22 +27,33 @@
```ruby
petergate(roles: [:admin])
```
to your User model.
-## Usage
+Usage
+------
Setup permissions in your controllers the same as you would for a before filter like so:
```ruby
access all: [:show, :index], user: AllRest
```
-Inside your views you can use logged_in?(:admin, :customer) to show or hide content.
+Inside your views you can use logged_in?(:admin, :customer, :etc) to show or hide content.
```erb
-<%= link_to "destroy", destroy_listing_path(listing) if logged_in?(:admin, :customer) %>
+<%= link_to "destroy", destroy_listing_path(listing) if logged_in?(:admin, :customer, :etc) %>
```
+
+Credits
+-------
+
+PeterGate is written and maintaned by Isaac Sloan and friends.
+
+Currently funded and maintained by [RingSeven](http://ringseven.com)
+
+
+
## Contributing
1. Fork it ( https://github.com/isaacsloan/petergate/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)