README.md in darkhelmet-role_on-0.1.1 vs README.md in darkhelmet-role_on-0.1.2
- old
+ new
@@ -48,9 +48,13 @@
Start locking down your controllers
role_on(:admin, :on => [:new,:create,:destroy])
role_on(:regular, :on => [:edit,:update])
+Add your views
+
+ if current_user.has_role?(:admin) # do stuff
+
Can also use except
role_on(:admin, :except => [:index,:show])
# License