Skip to content

Instantly share code, notes, and snippets.

View EppO's full-sized avatar

Florent Monbillard EppO

  • Montréal, QC, Canada
View GitHub Profile
@EppO
EppO / gist:4227865
Created December 6, 2012 20:07 — forked from mauriciopasquier/gist:4225871
rolify
# User model
class Usuario < ActiveRecord::Base
rolify :role_cname => 'Rol'
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable