Skip to content
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

Restrict operations #18

Closed
jsmestad opened this issue Jul 18, 2012 · 3 comments
Closed

Restrict operations #18

jsmestad opened this issue Jul 18, 2012 · 3 comments

Comments

@jsmestad
Copy link

What

Restrict a Her::Model to only supporting certain operations.

Why

In the case where you want to use all the features of the Her ORM, but you only have read-only access to a given object.

Proposed DSL

class Profile
   include Her::Model

   # Whitelist options
   supports :read, :create, :update, :delete

   # Blacklist actions
   restricts :update, :delete
end

I like the idea of whitelisting with an :all over blacklisting, thoughts?

@remi remi closed this as completed Dec 3, 2012
@chewi
Copy link
Contributor

chewi commented Aug 20, 2014

I was thinking the same thing. Why was this closed?

@mustela
Copy link

mustela commented Oct 5, 2015

👍 to have this feature

@giedriusr
Copy link
Contributor

Nice idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants