wice_grid 3.4.6 → 3.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90ee3cc8cd5f0d12ec80f8823a319ec859ea4a9f
4
- data.tar.gz: 3f0b2ff578c99d36e6dfbfdc948bb08cfe281c03
3
+ metadata.gz: 86104c55ad7c39afcbeede0d70eec14a954b5497
4
+ data.tar.gz: 1b4ae6d4a83a84a5edbb6d9efd467dc46279d261
5
5
  SHA512:
6
- metadata.gz: 99b0d994de925b26019f399f789cd783391999b3e0163d9e93a7135b03b1740c5aab7b33e266b491b6cd25605b4ea4f26d5b724d2df7d7cfb7dffe9a284fa9aa
7
- data.tar.gz: 4431cecfcaccf0b9d80c16d75e30e7298ce347dbff1568d5efe62999c46497de85cd534a12c435c1edd1c7479862186fe0ed644e5d4190dc13e304c648661ff3
6
+ metadata.gz: 4d0958d90066286fb45c88f5b15e7814bb7f5811b36e137e4a8a65cbfb7a2c8c123d78659498d2958ad587f98dd4a43a8f451b95e63d32dfedc7231b2d91a5fa
7
+ data.tar.gz: 10dfac4dacf0d6e4b2b7d9dcf3d6737899329ea8ee2d8fe9bc995e44fecbd6b060b32a96bb1ad345ebcd6a5a7baab0ef3bf803c65b6a843e651afa71bbf44189
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = WiceGrid
2
2
 
3
- Version:: 3.4.6
3
+ Version:: 3.4.7
4
4
  Author:: Yuri Leikind
5
5
  Sources:: https://github.com/leikind/wice_grid/
6
6
  Examples online:: http://wicegrid.herokuapp.com
@@ -306,6 +306,7 @@ module Wice
306
306
  link_style = nil
307
307
  if grid.ordered_by?(column)
308
308
  column.add_css_class('sorted')
309
+ Wice::WgHash.add_or_append_class_value!(opts, 'sorted')
309
310
  link_style = grid.order_direction
310
311
  direction = 'desc' if grid.order_direction == 'asc'
311
312
  end
@@ -9,7 +9,7 @@ class WiceGridSerializedQuery < ActiveRecord::Base #:nodoc:
9
9
 
10
10
  def self.list(name, controller)
11
11
  conditions = {:grid_name => name}
12
- self.where(conditions).all
12
+ self.where(conditions).to_a
13
13
  end
14
14
 
15
15
  end
data/lib/wice_grid.rb CHANGED
@@ -279,7 +279,7 @@ module Wice
279
279
  end
280
280
 
281
281
 
282
- def add_references relation #:nodoc:
282
+ def add_references relation
283
283
  if @ar_options[:include] && relation.respond_to?(:references)
284
284
  refs = [@ar_options[:include]] unless @ar_options[:include].is_a?(Array)
285
285
  relation = relation.references(* @ar_options[:include])
data/wice_grid.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'wice_grid'
3
- s.version = '3.4.6'
3
+ s.version = '3.4.7'
4
4
  s.homepage = 'https://github.com/leikind/wice_grid'
5
5
  s.date = '2014-08-25'
6
6
  s.summary = 'A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wice_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.6
4
+ version: 3.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Leikind