Skip to content

Instantly share code, notes, and snippets.

@geapi
Created August 17, 2010 19:20
Show Gist options
  • Save geapi/531569 to your computer and use it in GitHub Desktop.
Save geapi/531569 to your computer and use it in GitHub Desktop.
class ConnectionStatus < ActiveRecord::Base
ACTIVE = ConnectionStatus.find_by_name("active").name
DELETED = ConnectionStatus.find_by_name("deleted").name
DELETED_REMOTELY = ConnectionStatus.find_by_name("deleted_remotely").name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment