Module: Concerns::Models::UpdatedAt

Extended by:
ActiveSupport::Concern
Defined in:
app/models/kirgudu_common/concerns/models/updated_at.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#updated_at_formattedObject



16
17
18
19
20
21
22
23
# File 'app/models/kirgudu_common/concerns/models/updated_at.rb', line 16

def updated_at_formatted
	#time_ago_in_words()
	time_distance_in_words = distance_of_time_in_words(self.updated_at, DateTime.now.utc, true)
	time_dt_format = self.updated_at.strftime("%d.%m.%Y %H:%M")


	#"#{time_distance_in_words} (#{time_dt_format})"
end