Skip to content

Instantly share code, notes, and snippets.

@mrkurt
Created May 17, 2010 21:36
Show Gist options
  • Save mrkurt/404258 to your computer and use it in GitHub Desktop.
Save mrkurt/404258 to your computer and use it in GitHub Desktop.
class SecureSomething
include Mongoid::Document
field :private_field
field :public_field, :accessible => true
protected_by_default!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment