lib/rubocop/cop/style/align_hash.rb in rubocop-0.47.1 vs lib/rubocop/cop/style/align_hash.rb in rubocop-0.48.0
- old
+ new
@@ -104,10 +104,10 @@
'one line.'.freeze
def on_send(node)
return if double_splat?(node)
- last_argument = node.children.last
+ last_argument = node.last_argument
return unless last_argument.hash_type? &&
ignore_hash_argument?(last_argument)
ignore_node(last_argument)