mongoid-data_table 0.0.1 → 0.0.2

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.
@@ -77,7 +77,7 @@ module Mongoid
77
77
  def filter_conditions
78
78
  return unless (query = params[:sSearch]).present?
79
79
 
80
- {"$or" => klass.data_table_search_fields.map { |field| { field => /#{query}/i} } }
80
+ {"$or" => klass.data_table_searchable_fields.map { |field| { field => /#{query}/i} } }
81
81
  end
82
82
 
83
83
  def filter_field_conditions
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module DataTable
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mongoid-data_table
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jason Dew