aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/lines_controller.rb
diff options
context:
space:
mode:
authorvlatka pavisic2016-11-18 17:51:53 +0100
committervlatka pavisic2016-11-18 17:52:01 +0100
commit86586dca5d7a8fb6678dc8f0623e6820ee023ac9 (patch)
tree687795379ad482188d9d4e188997c2f678dea26e /app/controllers/lines_controller.rb
parente3b5c42fbb15b77f3a72294151dfd4cac6598f75 (diff)
downloadchouette-core-86586dca5d7a8fb6678dc8f0623e6820ee023ac9.tar.bz2
Refs #1974 : Refactor Line transport mode
Diffstat (limited to 'app/controllers/lines_controller.rb')
-rw-r--r--app/controllers/lines_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb
index 1a5c30787..eb38352be 100644
--- a/app/controllers/lines_controller.rb
+++ b/app/controllers/lines_controller.rb
@@ -73,7 +73,7 @@ class LinesController < BreadcrumbController
end
def collection
- %w(network_id company_id group_of_lines_id comment_id transport_mode_name).each do |filter|
+ %w(network_id company_id group_of_lines_id comment_id transport_mode).each do |filter|
if params[:q] && params[:q]["#{filter}_eq"] == '-1'
params[:q]["#{filter}_eq"] = ''
params[:q]["#{filter}_blank"] = '1'
@@ -91,7 +91,7 @@ class LinesController < BreadcrumbController
end
def line_params
- params.require(:line).permit( :transport_mode, :network_id, :company_id, :objectid, :object_version, :creation_time, :creator_id, :name, :number, :published_name, :transport_mode_name, :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, :creation_time, :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