mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-22 00:36:12 +01:00
update gems and fix i18n and aasm deprecation warnings
This commit is contained in:
parent
b1c306b09e
commit
17dca39d3a
10 changed files with 113 additions and 104 deletions
|
|
@ -66,7 +66,7 @@ class Todo < ActiveRecord::Base
|
|||
|
||||
# state machine
|
||||
include AASM
|
||||
aasm_initial_state Proc.new { |t| (t.show_from && t.user && (t.show_from > t.user.date)) ? :deferred : :active}
|
||||
aasm_initial_state = Proc.new { |t| (t.show_from && t.user && (t.show_from > t.user.date)) ? :deferred : :active}
|
||||
|
||||
aasm :column => :state do
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue