mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
migrating to aasm - code part
This commit is contained in:
parent
65e3a8ff30
commit
00819ce27b
54 changed files with 2656 additions and 839 deletions
|
|
@ -89,9 +89,6 @@ class TodosController < ApplicationController
|
|||
specified_state = @todo.state
|
||||
@saved = @todo.save
|
||||
|
||||
# Fix for #977 because AASM overrides @state on creation
|
||||
@todo.update_attribute('state', specified_state) unless specified_state == "immediate" || specified_state.nil? || !@saved
|
||||
@saved = @todo.save
|
||||
@todo.update_state_from_project if @saved
|
||||
|
||||
unless (@saved == false) || tag_list.blank?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue