Skip to content

Commit

Permalink
Merge pull request #3477 from LocalOrbit/master
Browse files Browse the repository at this point in the history
Merge staging
  • Loading branch information
rbarreca committed Oct 19, 2018
2 parents aca2659 + bb6cd14 commit 3ca3b0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Layout/DefEndAlignment:

# Multi-line method chaining should be done with leading dots.
Layout/DotPosition:
EnforcedStyle: leading
EnforcedStyle: trailing
SupportedStyles:
- leading
- trailing
Expand Down Expand Up @@ -589,7 +589,7 @@ Layout/SpaceInsideArrayLiteralBrackets:
- no_space

Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
EnforcedStyle: no_space
SupportedStyles:
- space
- no_space
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def create
session.delete(:current_delivery_day)
@grouped_items = @order.items.for_checkout
else
Rollbar.info('Order could not be completed', context: @placed_order.context)
Rollbar.warning('Order could not be completed', context_error: @placed_order.context[:error])

if @placed_order.context.key?(:cart_is_empty)
@grouped_items = current_cart.items.for_checkout
Expand Down
8 changes: 4 additions & 4 deletions lib/tasks/production-copy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ module CloneProductionHelper
refs_to_clear += balanced_payments_refs_to_clear
refs_to_clear += stripe_refs_to_clear

refs_to_clear.each do |model, fields|
fields.each do |field|
puts "Setting all #{model.name}##{field} to nil"
model.update_all("#{field} = NULL")
refs_to_clear.each do |hash|
hash[:fields].each do |field|
puts "Setting all #{hash[:model].name}##{field} to nil"
hash[:model].update_all("#{field} = NULL")
end
end
end
Expand Down

0 comments on commit 3ca3b0a

Please sign in to comment.