Module: Housekeeping::Users

Overview

Concern the provides housekeeping and related methods for models that belong_to a creator and updator

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


26
27
# File 'lib/housekeeping/users.rb', line 26

def alive?
end

#set_created_by_idObject



29
30
31
# File 'lib/housekeeping/users.rb', line 29

def set_created_by_id
  self.created_by_id ||= $user_id
end

#set_updated_by_idObject



33
34
35
# File 'lib/housekeeping/users.rb', line 33

def set_updated_by_id
  self.updated_by_id ||= $user_id
end