Skip to content

Instantly share code, notes, and snippets.

@bobbywilson0
Created December 10, 2008 04:42
Show Gist options
  • Save bobbywilson0/34236 to your computer and use it in GitHub Desktop.
Save bobbywilson0/34236 to your computer and use it in GitHub Desktop.
class Client < User
# Authorization plugin
acts_as_authorized_user
acts_as_authorizable
has_and_belongs_to_many :appointments
has_and_belongs_to_many :roles, :join_table => 'roles_users', :foreign_key => 'user_id'
validates_presence_of :name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment