Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Dec 9, 2019
2 parents 973f4fe + 021945f commit 666700a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

## Version 3.7.1

### Changes

- fix for arel count

### Commits

- [cbe4a97](http://github.com/ddnexus/pagy/commit/cbe4a97): Type cast pagy_arel_count value to integer (#207)
- [973f4fe](http://github.com/ddnexus/pagy/commit/973f4fe): updated link [ci skip]

## Version 3.7.0

### Changes
Expand Down
2 changes: 1 addition & 1 deletion lib/config/pagy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
# frozen_string_literal: true

# Pagy initializer file (3.7.0)
# Pagy initializer file (3.7.1)
# Customize only what you really need and notice that Pagy works also without any of the following lines.
# Should you just cherry pick part of this file, please maintain the require-order of the extras

Expand Down
2 changes: 1 addition & 1 deletion lib/javascripts/pagy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function Pagy(){}

Pagy.version = '3.7.0';
Pagy.version = '3.7.1';

Pagy.init = function(arg){
var target = arg instanceof Event || arg === undefined ? document : arg,
Expand Down
2 changes: 1 addition & 1 deletion lib/pagy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require 'pathname'

class Pagy ; VERSION = '3.7.0'
class Pagy ; VERSION = '3.7.1'

# Root pathname to get the path of Pagy files like templates or dictionaries
def self.root; @root ||= Pathname.new(__FILE__).dirname.freeze end
Expand Down
2 changes: 1 addition & 1 deletion lib/pagy/extras/arel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def pagy_arel_count(collection)
else
# COUNT(*) OVER ()
sql = Arel.star.count.over(Arel::Nodes::Grouping.new([]))
collection.unscope(:order).limit(1).pluck(sql).first
collection.unscope(:order).limit(1).pluck(sql).first.to_i
end
end

Expand Down

0 comments on commit 666700a

Please sign in to comment.