lib/qismo/model.rb in qismo-0.5.0 vs lib/qismo/model.rb in qismo-0.6.0
- old
+ new
@@ -26,14 +26,14 @@
end
alias_method :prev_page?, :has_prev_page?
def next_page
- @next_func.call
+ @next_func.call if has_next_page?
end
def prev_page
- @prev_func.call
+ @prev_func.call if has_prev_page?
end
end
class Response
attr_reader :data, :meta