Skip to content

Commit 780fc51

Browse files
committed
Rubocop fixes
1 parent 07fcb6c commit 780fc51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/active_resource/inheriting_hash.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ def [](key)
1515
# Merges the flattened parent hash (if it's an InheritingHash)
1616
# with ourself
1717
def to_hash
18-
@parent_hash.to_hash.merge(self)
18+
@parent_hash.to_hash.merge(self)
1919
end
20-
20+
2121
# So we can see the merged object in IRB or the Rails console
2222
def pretty_print(pp)
2323
pp.pp_hash to_hash
24-
end
24+
end
2525

2626
def inspect
2727
to_hash.inspect

test/abstract_unit.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def setup_response
141141
mock.get "/posts/1.json", {}, @post
142142
mock.get "/posts/1/comments.json", {}, @comments
143143
# products
144-
mock.get "/products/1.json", {"Accept"=>"application/json", "X-Inherited-Header"=>"present"}, @product
144+
mock.get "/products/1.json", { "Accept" => "application/json", "X-Inherited-Header" => "present" }, @product
145145
mock.get "/products/1/inventory.json", {}, @inventory
146146
# pets
147147
mock.get "/people/1/pets.json", {}, @pets

0 commit comments

Comments
 (0)