app/models/chouette/journey_pattern.rb
def special_update
    bck_sp = self.stop_points.map {|s| s}
    self.update_attributes :stop_points => []
    self.update_attributes :stop_points => bck_sp
  end
# TODO: this a workarround
# otherwise, we loose the first stop_point 
# when creating a new journey_pattern
this a workarround
otherwise, we loose the first stop_point
when creating a new journey_pattern
this a workarround otherwise we loose the first stop_point when creating a new journey_pattern
def special_update
    bck_sp = self.stop_points.map {|s| s}
    self.update_attributes :stop_points => []
    self.update_attributes :stop_points => bck_sp
  end
def special_update bck_sp = self . stop_points . map { | s | s } self . update_attributes :stop_points => [ ] self . update_attributes :stop_points => bck_sp end
TODO: this a workarround
otherwise, we loose the first stop_point
when creating a new journey_pattern
TODO : this a workarround otherwise we loose the first stop_point when creating a new journey_pattern