mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
12 lines
243 B
Ruby
12 lines
243 B
Ruby
class User < ActiveRecord::Base
|
|
include Versions # version/user_version.rb
|
|
|
|
has_many :actions, dependent: :restrict_with_exception
|
|
|
|
attr_accessor :phone
|
|
|
|
def id_role_username
|
|
"#{self.id}-#{self.class}: #{self.username}"
|
|
end
|
|
|
|
end
|