Skip to content

Commit

Permalink
Merge pull request #140 from ham0215/fix-examples
Browse files Browse the repository at this point in the history
Fix errors in examples
  • Loading branch information
tgwizard authored Jun 3, 2021
2 parents 6eabbf8 + 62a9a89 commit c423ae1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/active_storage_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ActiveStorageLoader < GraphQL::Batch::Loader
attr_reader :record_type, :attachment_name

def initialize(record_type, attachment_name)
super
super()
@record_type = record_type
@attachment_name = attachment_name
end
Expand Down
2 changes: 1 addition & 1 deletion examples/association_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.validate(model, association_name)
end

def initialize(model, association_name)
super
super()
@model = model
@association_name = association_name
validate
Expand Down
2 changes: 1 addition & 1 deletion examples/http_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
module Loaders
class HTTPLoader < GraphQL::Batch::Loader
def initialize(host:, size: 4, timeout: 4)
super
super()
@host = host
@size = size
@timeout = timeout
Expand Down
2 changes: 1 addition & 1 deletion examples/record_loader.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class RecordLoader < GraphQL::Batch::Loader
def initialize(model, column: model.primary_key, where: nil)
super
super()
@model = model
@column = column.to_s
@column_type = model.type_for_attribute(@column)
Expand Down
2 changes: 1 addition & 1 deletion examples/window_key_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class WindowKeyLoader < GraphQL::Batch::Loader
attr_reader :model, :foreign_key, :limit, :order_col, :order_dir

def initialize(model, foreign_key, limit:, order_col:, order_dir: :asc)
super
super()
@model = model
@foreign_key = foreign_key
@limit = limit
Expand Down

0 comments on commit c423ae1

Please sign in to comment.