Module: Roleable

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/roleable.rb

Overview

TODO 05-05-2015 make Roleable work with other resource_class too

Defined Under Namespace

Modules: ClassMethods Classes: RoleValidator

Instance Method Summary collapse

Instance Method Details

#set_default_roleObject



56
57
58
# File 'app/models/concerns/roleable.rb', line 56

def set_default_role
 self.role ||= :user
end