From c79641c77c3dedcbc79feb3b0c12973f614060da Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 31 Jan 2018 15:23:31 +0100 Subject: [PATCH] Fix typos in documentation --- app/jobs/order_cycle_notification_job.rb | 2 +- app/models/order_cycle.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/order_cycle_notification_job.rb b/app/jobs/order_cycle_notification_job.rb index 91f9121515..d4efa6de13 100644 --- a/app/jobs/order_cycle_notification_job.rb +++ b/app/jobs/order_cycle_notification_job.rb @@ -1,4 +1,4 @@ -# Deliers an email with a report of the order cycle to each of its suppliers +# Delivers an email with a report of the order cycle to each of its suppliers OrderCycleNotificationJob = Struct.new(:order_cycle_id) do def perform order_cycle = OrderCycle.find(order_cycle_id) diff --git a/app/models/order_cycle.rb b/app/models/order_cycle.rb index 9ddde06edd..9dcf118bab 100644 --- a/app/models/order_cycle.rb +++ b/app/models/order_cycle.rb @@ -76,7 +76,7 @@ class OrderCycle < ActiveRecord::Base enterprises = Enterprise.managed_by(user) # Order cycles where I managed an enterprise at either end of an outgoing exchange - # ie. coordinator or distibutor + # ie. coordinator or distributor joins(:exchanges).merge(Exchange.outgoing). where('exchanges.receiver_id IN (?) OR exchanges.sender_id IN (?)', enterprises, enterprises). select('DISTINCT order_cycles.*')