wice_grid_mongoid 6.0.6 → 6.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.0.6
1
+ 6.0.7
@@ -114,8 +114,8 @@ module Wice
114
114
  end
115
115
  from = parse_number(opts[:fr])
116
116
  to = parse_number(opts[:to])
117
- @criteria.where(@field.name.to_sym.gt => from)
118
- @criteria.where(@field.name.to_sym.lt => to)
117
+ @criteria.where(@field.name.to_sym.gte => from)
118
+ @criteria.where(@field.name.to_sym.lte => to)
119
119
 
120
120
  return true
121
121
  end
@@ -139,8 +139,8 @@ module Wice
139
139
  @@handled_type[Time] = self
140
140
 
141
141
  def generate_conditions(opts) #:nodoc:
142
- @criteria.where(@field.name.to_sym.gt => opts[:fr]) if opts[:fr]
143
- @criteria.where(@field.name.to_sym.lt => opts[:to]) if opts[:to]
142
+ @criteria.where(@field.name.to_sym.gte => opts[:fr]) if opts[:fr]
143
+ @criteria.where(@field.name.to_sym.lte => opts[:to]) if opts[:to]
144
144
  opts[:fr] || opts[:to]
145
145
  end
146
146
  end
data/lib/view_columns.rb CHANGED
@@ -142,6 +142,7 @@ module Wice
142
142
  self.td_html_attrs.add_or_append_class_value!('sel')
143
143
  grid_name = self.grid.name
144
144
  @param_name = param_name
145
+ debugger
145
146
  @cell_rendering_block = lambda do |object, params|
146
147
  selected = if params[grid_name] && params[grid_name][param_name] &&
147
148
  params[grid_name][param_name].index(object.send(object_property).to_s)
data/lib/wice_grid.rb CHANGED
@@ -261,8 +261,8 @@ module Wice
261
261
  # Getters
262
262
 
263
263
  def filter_params(view_column) #:nodoc:
264
- return (@status[:f][view_column.attribute_name] || {}) if @status[:f]
265
- {}
264
+ return (@status[:f][view_column.attribute_name] || "") if @status[:f]
265
+ ""
266
266
  end
267
267
 
268
268
  def resultset #:nodoc:
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wice_grid_mongoid}
8
- s.version = "6.0.6"
8
+ s.version = "6.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yuri Leikind", "Aleksandr Furmanov"]
12
- s.date = %q{2010-12-13}
12
+ s.date = %q{2010-12-18}
13
13
  s.description = %q{A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters }
14
14
  s.email = %q{aleksandr.furmanov@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wice_grid_mongoid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 6
8
8
  - 0
9
- - 6
10
- version: 6.0.6
9
+ - 7
10
+ version: 6.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yuri Leikind
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-13 00:00:00 -08:00
19
+ date: 2010-12-18 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies: []
22
22