initial commit
This commit is contained in:
10
app/models/concerns/formatable.rb
Normal file
10
app/models/concerns/formatable.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
module Formatable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
|
||||
def created_at_formatted
|
||||
created_at.in_time_zone("Europe/Sarajevo").strftime("%d.%m.%Y %H:%M")
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user