initial commit
This commit is contained in:
0
app/models/.keep
Normal file
0
app/models/.keep
Normal file
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
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
|
||||
3
app/models/guess.rb
Normal file
3
app/models/guess.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Guess < ActiveRecord::Base
|
||||
include Formatable
|
||||
end
|
||||
3
app/models/solution.rb
Normal file
3
app/models/solution.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Solution < ActiveRecord::Base
|
||||
include Formatable
|
||||
end
|
||||
2
app/models/user.rb
Normal file
2
app/models/user.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class User < ActiveRecord::Base
|
||||
end
|
||||
Reference in New Issue
Block a user