Use indented style for multiline method calls

This enables the Rubocop's Style/MultilineMethodCallIndentation cop with
indentend enforced style. Which makes you split multiline method calls like:

  orders = Spree::Order
    .an_scope
    .another_scope
    .where(id: list_of_ids)

It also autofixes the current violations and updates the
rubocop_todo.yml
This commit is contained in:
Pau Perez
2017-07-11 10:10:07 +02:00
parent d0c6292e9d
commit cee24dcca7
35 changed files with 236 additions and 216 deletions

View File

@@ -29,12 +29,12 @@ class Api::Admin::ExchangeSerializer < ActiveModel::Serializer
def permitted_incoming_variants
OpenFoodNetwork::OrderCyclePermissions.new(options[:current_user], object.order_cycle).
visible_variants_for_incoming_exchanges_from(object.sender)
visible_variants_for_incoming_exchanges_from(object.sender)
end
def permitted_outgoing_variants
OpenFoodNetwork::OrderCyclePermissions.new(options[:current_user], object.order_cycle)
.visible_variants_for_outgoing_exchanges_to(object.receiver)
.visible_variants_for_outgoing_exchanges_to(object.receiver)
end
def tag_list