lib/restpack_serializer/serializable/paging.rb in restpack_serializer-0.4.8 vs lib/restpack_serializer/serializable/paging.rb in restpack_serializer-0.4.9

- old
+ new

@@ -56,10 +56,10 @@ end def page_href(page, options) return nil unless page - url = "#{RestPack::Serializer.config.href_prefix}/#{self.key}.json" + url = "#{RestPack::Serializer.config.href_prefix}/#{self.key}" params = [] params << "page=#{page}" unless page == 1 params << "page_size=#{options.page_size}" unless options.default_page_size? params << "include=#{options.include.join(',')}" if options.include.any?