Restrict operations #18

jsmestad opened this Issue Jul 18, 2012 · 3 comments

5 participants



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


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

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

@remiprev remiprev closed this Dec 3, 2012

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


👍 to have this feature


Nice idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment