samples/access_rules.rb in tuersteher-0.4.0 vs samples/access_rules.rb in tuersteher-0.4.1

- old
+ new

@@ -16,9 +16,13 @@ path('/').grant.method(:get) path(:all).grant.role(:ADMIN) path('/user/lock').deny.role(:USER).role(:APPROVER) path('/special').grant.extension(:special?, :area1) +path('/pictures') do + grant.role(:admin) + deny.role(:guest) +end # # Model-Object-Zugriffsregeln # Aufbau: # model(<ModelClass>).grant.method(<access-method>)[.role(<role>)][.extension(<method>[, <expected_value>])]