Skip to content

Commit

Permalink
Leave patches styles as it's original style
Browse files Browse the repository at this point in the history
  • Loading branch information
gussan committed Apr 12, 2017
1 parent 6056855 commit 54567f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .rubocop.yml
Expand Up @@ -16,10 +16,18 @@ AllCops:
RSpec/NestedGroups:
Max: 4

Style/DotPosition:
Exclude:
- "lib/active_record/turntable/active_record_ext/relation.rb"

Style/ExtraSpacing:
Exclude:
- "activerecord-turntable.gemspec"

Style/MultilineMethodCallIndentation:
Exclude:
- "lib/active_record/turntable/active_record_ext/relation.rb"

Style/PercentLiteralDelimiters:
Enabled: false

Expand Down
6 changes: 3 additions & 3 deletions lib/active_record/turntable/active_record_ext/relation.rb
Expand Up @@ -14,9 +14,9 @@ def _update_record(values, id, id_was, turntable_scope = nil) # :nodoc:
relation = scope.where(@klass.primary_key => (id_was || id))
relation = relation.merge(turntable_scope) if turntable_scope
bvs = binds + relation.bound_attributes
um = relation.
arel.
compile_update(substitutes, @klass.primary_key)
um = relation
.arel
.compile_update(substitutes, @klass.primary_key)

@klass.connection.update(
um,
Expand Down

0 comments on commit 54567f8

Please sign in to comment.