app/models/article.rb
# modify param_receiver in put.
# self is supposed to be param_receiver

modify param_receiver in put.
self is supposed to be param_receiver
modify param_receiver in put . self is supposed to be param_receiver
def modifier!
    self.sender_name = @@current_user.real_name
    if self.time_place_settings
      unless time_including_setting
        self.start_datetime, self.end_datetime = self.start_date.beginning_of_day, self.end_date.end_of_day
      end
      set_schedule_time_attrs
    else
      self.start_date = self.end_date = self.start_datetime = self.end_datetime = self.schedule_day_of_week = nil
    end
    place_id = self.place_run_id
    if place_id
      self.place_run_id = Space.find(place_id).run_id
    end
    if !self.questionnaires.blank?
      self.article_class = Questionnaire_Class
    end
  end
def modifier! self . sender_name = @@current_user . real_name if self . time_place_settings unless time_including_setting self . start_datetime , self . end_datetime = self . start_date . beginning_of_day , self . end_date . end_of_day end set_schedule_time_attrs else self . start_date = self . end_date = self . start_datetime = self . end_datetime = self . schedule_day_of_week = nil end place_id = self . place_run_id if place_id self . place_run_id = Space . find ( place_id ) . run_id end if ! self . questionnaires . blank? self . article_class = Questionnaire_Class end end
modify param_receiver in put.
modify param_receiver in put .
# for time_place settings
 # modify place_run_id from id
