aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/lines_controller.rb
diff options
context:
space:
mode:
authorjpl2017-02-20 16:56:23 +0100
committerjpl2017-02-20 16:56:23 +0100
commitbaaca138b1e72312c16c4e1a35ad3f0470eeb503 (patch)
tree3f364549738a4b94df88a0087e5749eea67b5bce /app/controllers/lines_controller.rb
parente4be9d68121b873de13be494093a234dbfd5d49b (diff)
downloadchouette-core-baaca138b1e72312c16c4e1a35ad3f0470eeb503.tar.bz2
Refs #2626: updating line footnotes, first pass
Diffstat (limited to 'app/controllers/lines_controller.rb')
-rw-r--r--app/controllers/lines_controller.rb26
1 files changed, 25 insertions, 1 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb
index a0bb4b3c2..cce01e334 100644
--- a/app/controllers/lines_controller.rb
+++ b/app/controllers/lines_controller.rb
@@ -102,7 +102,31 @@ class LinesController < BreadcrumbController
helper_method :current_referential
def line_params
- params.require(:line).permit( :transport_mode, :network_id, :company_id, :objectid, :object_version, :creator_id, :name, :number, :published_name, :transport_mode, :registration_number, :comment, :mobility_restricted_suitability, :int_user_needs, :flexible_service, :group_of_lines, :group_of_line_ids, :group_of_line_tokens, :url, :color, :text_color, :stable_id, { footnotes_attributes: [ :code, :label, :_destroy, :id ] } )
+ params.require(:line).permit(
+ :transport_mode,
+ :network_id,
+ :company_id,
+ :objectid,
+ :object_version,
+ :creator_id,
+ :name,
+ :number,
+ :published_name,
+ :transport_mode,
+ :registration_number,
+ :comment,
+ :mobility_restricted_suitability,
+ :int_user_needs,
+ :flexible_service,
+ :group_of_lines,
+ :group_of_line_ids,
+ :group_of_line_tokens,
+ :url,
+ :color,
+ :text_color,
+ :stable_id,
+ footnotes_attributes: [:code, :label, :_destroy, :id]
+ )
end
end