initial commit

This commit is contained in:
Senad Uka
2013-12-09 03:23:49 +01:00
parent 9582c13e0c
commit e8751fa215
204 changed files with 6675 additions and 41 deletions

0
app/models/.keep Normal file
View File

View File

View 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
View File

@@ -0,0 +1,3 @@
class Guess < ActiveRecord::Base
include Formatable
end

3
app/models/solution.rb Normal file
View File

@@ -0,0 +1,3 @@
class Solution < ActiveRecord::Base
include Formatable
end

2
app/models/user.rb Normal file
View File

@@ -0,0 +1,2 @@
class User < ActiveRecord::Base
end