aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorXinhui2017-04-27 15:14:05 +0200
committerXinhui2017-04-27 15:14:16 +0200
commit5cf914aec14e39507a3d7c05834fbd945340be92 (patch)
tree9db472edccaa93035cc4feedd0d777cd2ab75ebd /app/controllers/time_tables_controller.rb
parentcaab8418c994194d52f2685514644cddd177083e (diff)
downloadchouette-core-5cf914aec14e39507a3d7c05834fbd945340be92.tar.bz2
Wip TimeTables#update save TimeTableDate
Refs #2899
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index 487c14e9f..ea53df35f 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -58,6 +58,7 @@ class TimeTablesController < ChouetteController
def update
state = JSON.parse request.raw_post
+ resource.state_update state
respond_to do |format|
format.json { render json: state, status: state['errors'] ? :unprocessable_entity : :ok }
end