Class: BravoLock::Registration

Inherits:
BravoModel::Base
  • Object
show all
Defined in:
app/models/bravo_lock/registration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#userObject

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