Class: BravoLock::Registration
- Inherits:
-
BravoModel::Base
- Object
- BravoModel::Base
- BravoLock::Registration
- Defined in:
- app/models/bravo_lock/registration.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
-
.attribute(name, type) ⇒ Object
Use this to define an attribute that should be copied across to the user when it’s created.
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
6 7 8 |
# File 'app/models/bravo_lock/registration.rb', line 6 def user @user end |
Class Method Details
.attribute(name, type) ⇒ Object
Use this to define an attribute that should be copied across to the user when it’s created. Use column() for attributes that you don’t want copied
23 24 25 26 |
# File 'app/models/bravo_lock/registration.rb', line 23 def self.attribute(name, type) column name, type self.attribute_list += [name] end |