Skip to content

Commit 5d1dac3

Browse files
jkeenrichmolj
authored andcommitted
more lint fixes
1 parent 05ebda3 commit 5d1dac3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/graphiti/resource/sideloading.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def polymorphic_has_many(name, opts = {}, &blk)
6868
model_ref = model
6969
has_many name, opts do
7070
params do |hash|
71-
hash[:filter][:"#{as}_type"] = { eql: model_ref.name }
71+
hash[:filter][:"#{as}_type"] = {eql: model_ref.name}
7272
end
7373

7474
instance_eval(&blk) if blk
@@ -82,7 +82,7 @@ def polymorphic_has_one(name, opts = {}, &blk)
8282
model_ref = model
8383
has_one name, opts do
8484
params do |hash|
85-
hash[:filter][:"#{as}_type"] = { eql: model_ref.name }
85+
hash[:filter][:"#{as}_type"] = {eql: model_ref.name}
8686
end
8787

8888
instance_eval(&blk) if blk

spec/rendering_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def self.name
587587
end
588588
end
589589

590-
context 'when a multi-word stat' do
590+
context "when a multi-word stat" do
591591
before do
592592
resource.stat multi_word: [:average] do
593593
average do

0 commit comments

Comments
 (0)