Skip to content

Commit 85cadc8

Browse files
authored
Merge pull request #108 from ekampp/master
Use instance_variable_defined? to avoid warning
2 parents 289716e + 5bcf75d commit 85cadc8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/api-pagination/configuration.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ def initialize
5050
end
5151

5252
def paginator
53-
@paginator || set_paginator
53+
if instance_variable_defined? :@paginator
54+
@paginator
55+
else
56+
set_paginator
57+
end
5458
end
5559

5660
def paginator=(paginator)

0 commit comments

Comments
 (0)