Fix some rubocop issues

This commit is contained in:
luisramos0
2019-07-14 12:28:32 +01:00
parent 6aed9ba549
commit d0c246c345
5 changed files with 25 additions and 15 deletions

View File

@@ -11,7 +11,8 @@ module OpenFoodNetwork
when ActiveRecord::Relation
@subscriptions = subscriptions.not_ended.not_canceled
else
raise "ProxyOrderSyncer must be initialized with an instance of Subscription or ActiveRecord::Relation"
raise "ProxyOrderSyncer must be initialized with " \
"an instance of Subscription or ActiveRecord::Relation"
end
end
@@ -74,7 +75,9 @@ module OpenFoodNetwork
end
def in_range_order_cycles
order_cycles.where('orders_close_at >= ? AND orders_close_at <= ?', begins_at, ends_at || 100.years.from_now)
order_cycles.where("orders_close_at >= ? AND orders_close_at <= ?",
begins_at,
ends_at || 100.years.from_now)
end
end
end