README.md in petergate-1.0.1 vs README.md in petergate-1.0.2

- old
+ new

@@ -51,11 +51,11 @@ ------ Setup permissions in your controllers the same as you would for a before filter like so: ```ruby -access all: [:show, :index], user: AllRest +access all: [:show, :index], user: ALLREST ``` Inside your views you can use logged_in?(:admin, :customer, :etc) to show or hide content. ```erb @@ -66,10 +66,11 @@ ```ruby User::ROLES # or from an instance User.first.available_roles -# ROLES is a CONSTANT and will still work from within the User model instance methods like in this default setter: +# ROLES is a CONSTANT and will still work from within the User model instance methods +# like in this default setter: def roles=(v) self[:roles] = v.map(&:to_sym).to_a.select{|r| r.size > 0 && ROLES.include?(r)} end ```