diff options
| author | Luc Donnet | 2015-01-15 16:40:30 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2015-01-15 16:40:30 +0100 | 
| commit | c89c3508eb953e79165ba61aee878db8e4d15ff5 (patch) | |
| tree | f59b362c96c13bd5facba44f356676f3383e6cd3 /app/controllers/lines_controller.rb | |
| parent | b9a4d3cde1604f4bea01551d8c85624a313a2dfe (diff) | |
| parent | 7d984efe77efd8e610c91fcefc35c4a3e17412fd (diff) | |
| download | chouette-core-c89c3508eb953e79165ba61aee878db8e4d15ff5.tar.bz2 | |
Fix tests and merge master
Diffstat (limited to 'app/controllers/lines_controller.rb')
| -rw-r--r-- | app/controllers/lines_controller.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index aee3f8c67..be4ca6547 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -81,4 +81,10 @@ class LinesController < ChouetteController      @lines ||= @q.result(:distinct => true).order(:number).paginate(:page => params[:page]).includes([:network, :company])    end +  private + +  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) +  end +  end | 
