Class: Role
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Role
- Defined in:
- app/models/role.rb
Overview
Schema Information
Table name: roles
id :integer(4) not null, primary key
rolename :string(255)
created_at :datetime
updated_at :datetime
Instance Method Summary collapse
-
#rolename=(val) ⇒ Object
roles can be defined as symbols.
Instance Method Details
#rolename=(val) ⇒ Object
roles can be defined as symbols. We want to store them as strings in the database
23 24 25 |
# File 'app/models/role.rb', line 23 def rolename= val write_attribute(:rolename, val.to_s) end |