Skip to content

Instantly share code, notes, and snippets.

@rosenfeld
Created October 15, 2012 21:16
Show Gist options
  • Select an option

  • Save rosenfeld/3895556 to your computer and use it in GitHub Desktop.

Select an option

Save rosenfeld/3895556 to your computer and use it in GitHub Desktop.
User class example for Sequel and Devise
class User < Sequel::Model(:jsec_user)
plugin :devise
# other available modules:
# :token_authenticatable, :registerable, :confirmable, :lockable, :timeoutable and :omniauthable
# :recoverable, :rememberable, :trackable, :validatable, :encryptable
devise :database_authenticatable, :timeoutable #, etc
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment