Comments (1)
Hi! If I understood you correctly, then: there is no inheritance between can
blocks and Access Granted has no special handling for inheritance of Ruby classes.
You can DRY it up by extracting common logic into methods and use that in blocks
from access-granted.
Related Issues (20)
- Permissions with blocks work too persmissive (block is ignored) HOT 4
- Replacement for accessible_by HOT 9
- Can we use with `gem 'role_model'` HOT 5
- Block in role always evaluating true HOT 5
- Caching accesses. HOT 4
- errors with non-logged in users HOT 3
- Error when there is no user logged in HOT 1
- Able to access protected controller actions HOT 2
- permission always uses conditions hash when passed a Class as subject HOT 7
- Higher level roles do not seem to inherit from lower level roles HOT 15
- Support for introspection HOT 11
- Feature request: special handling for nil current_user? HOT 16
- README should provide promised "cannot" example. HOT 5
- How to setup access_policy.rb when roles are not part of a user model? HOT 3
- Support for :all HOT 1
- Undefined method with ViewComponents HOT 4
- class inheritance, and class as test subject HOT 4
- Class vs Instance subjects HOT 7
- Is this project dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from access-granted.