lib/canvas_sync/generators/templates/models/term.rb in canvas_sync-0.10.6 vs lib/canvas_sync/generators/templates/models/term.rb in canvas_sync-0.11.0

- old
+ new

@@ -19,11 +19,9 @@ term_data = terms.find{|term| term['id'] == canvas_id } raise Footrest::HttpError::NotFound unless term_data.present? term_data }) - def self.create_or_update(params); find_or_initialize_by(canvas_id: params['id']).update_from_api_params!(params); end - # This is a sample scope created by the CanvasSync gem; feel # free to customize it for your tool's requirements. scope :active, -> { where(workflow_state: 'active') .where("start_at <= ? OR start_at IS NULL", 15.days.from_now)