show only one year
This commit is contained in:
parent
3e31584713
commit
a688b0bb06
1 changed files with 1 additions and 1 deletions
2
mood.rb
2
mood.rb
|
|
@ -23,6 +23,6 @@ class Mood < ActiveRecord::Base
|
||||||
log_mood << [ current_date.to_s, current_mode ]
|
log_mood << [ current_date.to_s, current_mode ]
|
||||||
current_date += 1
|
current_date += 1
|
||||||
end
|
end
|
||||||
log_mood.each_slice(7).to_a
|
log_mood.each_slice(7).to_a.last(54)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue