diff options
| author | jpl | 2017-04-04 15:44:50 +0200 | 
|---|---|---|
| committer | jpl | 2017-04-04 15:44:50 +0200 | 
| commit | 2620efba52c5ce68ec9f0b812f387d7ef66c9d13 (patch) | |
| tree | 9f5165302796d3b7def7a2c70c75ae1090b4c7b1 /app/controllers/time_tables_controller.rb | |
| parent | 043e813ce3c13be2611d20d5e084f2add79afb59 (diff) | |
| download | chouette-core-2620efba52c5ce68ec9f0b812f387d7ef66c9d13.tar.bz2 | |
Refs #2892: adding simpleform builder for acts-as-taggable (for timetable#edit)
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 22 | 
1 files changed, 21 insertions, 1 deletions
| diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index bdde5d3ab..50c925eac 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -117,6 +117,26 @@ class TimeTablesController < ChouetteController    private    def time_table_params -    params.require(:time_table).permit( :objectid, :object_version, :creator_id, :calendar_id, :version, :comment, :int_day_types, :monday, :tuesday, :wednesday, :thursday, :friday, :saturday, :sunday, :start_date, :end_date, { :dates_attributes => [:date, :in_out, :id, :_destroy] }, { :periods_attributes => [:period_start, :period_end, :_destroy, :id] }, :tag_list, :tag_search ) +    params.require(:time_table).permit( +      :objectid, +      :object_version, +      :creator_id, +      :calendar_id, +      :version, :comment, +      :int_day_types, +      :monday, +      :tuesday, +      :wednesday, +      :thursday, +      :friday, +      :saturday, +      :sunday, +      :start_date, +      :end_date, +      { :dates_attributes => [:date, :in_out, :id, :_destroy] }, +      { :periods_attributes => [:period_start, :period_end, :_destroy, :id] }, +      {tag_list: []}, +      :tag_search +    )    end  end | 
