You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -244,9 +241,7 @@ class ApplicationController < ActionController::Base
244
241
private
245
242
246
243
defwhen_unauthorized
247
-
# Default behavior: redirect back (HTML) or return 403 (other formats)
248
-
# Custom behavior example:
249
-
head :not_found# Hide existence of protected resources
244
+
head :not_found# Custom behavior to hide existence of protected resources
250
245
end
251
246
end
252
247
```
@@ -288,7 +283,7 @@ end
288
283
289
284
## Multi-tenancy / Context
290
285
291
-
All Rabarber methods accept a `context` parameter, allowing you to work with roles within specific scopes rather than globally.
286
+
All Rabarber methods accept a `context` parameter, allowing you to work with roles within specific scopes. By default, context is `nil`, meaning roles are global.
0 commit comments