Skip to content

Commit

Permalink
Merge pull request #691 from flyerhzm/awesomecode-format-ruby-code-59155
Browse files Browse the repository at this point in the history
Auto corrected by following Format Ruby Code
  • Loading branch information
flyerhzm authored Nov 5, 2023
2 parents 4f61a2f + 86e6850 commit 3d6532b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 7 deletions.
5 changes: 4 additions & 1 deletion lib/bullet/active_record5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ def count
proxy_association.owner,
proxy_association.reflection.name
)
Bullet::Detector::NPlusOneQuery.call_association(proxy_association.owner, proxy_association.reflection.name)
Bullet::Detector::NPlusOneQuery.call_association(
proxy_association.owner,
proxy_association.reflection.name
)
end
super
end
Expand Down
5 changes: 4 additions & 1 deletion lib/bullet/active_record52.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ def count(column_name = nil)
proxy_association.owner,
proxy_association.reflection.name
)
Bullet::Detector::NPlusOneQuery.call_association(proxy_association.owner, proxy_association.reflection.name)
Bullet::Detector::NPlusOneQuery.call_association(
proxy_association.owner,
proxy_association.reflection.name
)
end
super(column_name)
end
Expand Down
5 changes: 4 additions & 1 deletion lib/bullet/active_record60.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ def count
proxy_association.owner,
proxy_association.reflection.name
)
Bullet::Detector::NPlusOneQuery.call_association(proxy_association.owner, proxy_association.reflection.name)
Bullet::Detector::NPlusOneQuery.call_association(
proxy_association.owner,
proxy_association.reflection.name
)
end
super
end
Expand Down
5 changes: 4 additions & 1 deletion lib/bullet/active_record61.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ def count(column_name = nil)
proxy_association.owner,
proxy_association.reflection.name
)
Bullet::Detector::NPlusOneQuery.call_association(proxy_association.owner, proxy_association.reflection.name)
Bullet::Detector::NPlusOneQuery.call_association(
proxy_association.owner,
proxy_association.reflection.name
)
end
super(column_name)
end
Expand Down
5 changes: 4 additions & 1 deletion lib/bullet/active_record70.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def count(column_name = nil)
proxy_association.owner,
proxy_association.reflection.name
)
Bullet::Detector::NPlusOneQuery.call_association(proxy_association.owner, proxy_association.reflection.name)
Bullet::Detector::NPlusOneQuery.call_association(
proxy_association.owner,
proxy_association.reflection.name
)
end
super(column_name)
end
Expand Down
5 changes: 4 additions & 1 deletion lib/bullet/active_record71.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def count(column_name = nil)
proxy_association.owner,
proxy_association.reflection.name
)
Bullet::Detector::NPlusOneQuery.call_association(proxy_association.owner, proxy_association.reflection.name)
Bullet::Detector::NPlusOneQuery.call_association(
proxy_association.owner,
proxy_association.reflection.name
)
end
super(column_name)
end
Expand Down
3 changes: 2 additions & 1 deletion lib/bullet/ext/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def bullet_primary_key_value
def bullet_join_potential_composite_primary_key(primary_keys)
return send(primary_keys) unless primary_keys.is_a?(Enumerable)

primary_keys.map { |primary_key| send primary_key }.join(',')
primary_keys.map { |primary_key| send primary_key }
.join(',')
end
end

0 comments on commit 3d6532b

Please sign in to comment.