Skip to content

Instantly share code, notes, and snippets.

@alduro
Created April 29, 2011 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alduro/947654 to your computer and use it in GitHub Desktop.
Save alduro/947654 to your computer and use it in GitHub Desktop.
class Attendee < Ohm::Model
attribute :email
attribute :hash
attribute :group
attribute :prefix
attribute :ami_instance
attribute :confirmed
index :hash
index :confirmed
end
attendee = Attendee.find(:hash => params[:hash_id])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment