Class: Refinery::Role
- Inherits:
-
Core::BaseModel
- Object
- ActiveRecord::Base
- Core::BaseModel
- Refinery::Role
- Defined in:
- authentication/app/models/refinery/role.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
Class Method Details
+ (Object) [](title)
13 14 15 |
# File 'authentication/app/models/refinery/role.rb', line 13 def self.[](title) find_or_create_by_title(title.to_s.camelize) end |
Instance Method Details
- (Object) camelize_title(role_title = self.title)
9 10 11 |
# File 'authentication/app/models/refinery/role.rb', line 9 def camelize_title(role_title = self.title) self.title = role_title.to_s.camelize end |