-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scope support #5
Comments
👍
Agree that |
Hm, what about authorized_scope? |
I like this 👍 |
👍
I like |
Yep, I'm also for one word.
def post_params
authorized(params.require[:post])
end |
This is what I've ended up with: https://gist.github.com/palkan/dbeceb454e75183b98c13cd4dbe5d9d3. Need some time to digest it. |
@palkan this is being used in production on any project of evil martians? I'm wondering when this will be merged into master. |
@rainerborene we currently using our ad-hoc version which I want to generalize in the API/implementation proposed above. |
That’s number one on my “open-source debt” list) I think, that will take me about 2-3 weeks. I had a busy schedule ‘till the middle of July( |
I apologize for being so cruel to bother you right before the New Year's holidays. But still I would like to express my gratitude for the library and tell you that I am fascinated by "scopes" and willing to try this feature so much. Happy New Year and hoping to see 0.3 release soon in 2019! 🎉 |
Hi! I was little bit confused trying to use the scoping feature. I did read in the documentation about scoping and was trying to use it. Unfortunately it did take a while to realize that this feature isn't released yet. Are there any plans to release this feature any time soon? And may be the docs should indicate that the feature isn't released yet!? |
yep, definitely; added https://actionpolicy.evilmartians.io/#/scoping |
Provide ability to scope relations (e.g. ActiveRecord).
Defining scopes
Applying scopes
To discuss
Is
relation
a good name for a passed scope within a policy?Is
scoped
a good name for a helper? I don't like Pundit'spolicy_scope
, it's too verbose and doesn't sound like English, IMO.The text was updated successfully, but these errors were encountered: