lib/videojuicer/resource/collection.rb in vj-sdk-0.5.1 vs lib/videojuicer/resource/collection.rb in vj-sdk-0.5.2

- old
+ new

@@ -25,10 +25,10 @@ return 1 if limit.nil? (total.to_f/limit.to_f).ceil end def page_number - return 1 if limit.nil? + return 1 if limit.nil? or offset.nil? or offset < 1 (offset.to_f/limit.to_f).ceil end end end \ No newline at end of file