rails-tables 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/app/tables/datatable/searching.rb +1 -1
- data/lib/rails-tables/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -12,7 +12,7 @@ A clean jQuery datatables DSL
|
|
12
12
|
[jqd-railscast]: http://railscasts.com/episodes/340-datatables (Episode #340: Datatables)
|
13
13
|
[squeel]: https://github.com/ernie/squeel (Squeel: ActiveRecord 3, improved)
|
14
14
|
|
15
|
-
Version: 0.6.
|
15
|
+
Version: 0.6.1
|
16
16
|
|
17
17
|
Please refer to the [RailsTables Wiki][wiki] for:
|
18
18
|
|
@@ -36,7 +36,7 @@ private
|
|
36
36
|
# Build Squeel Stubs for search
|
37
37
|
def search(terms)
|
38
38
|
terms = terms.split if terms.is_a? String
|
39
|
-
|
39
|
+
searchables.map do |search|
|
40
40
|
terms.map do |word|
|
41
41
|
Squeel::Nodes::KeyPath.new(search[:column_source].split('.') << Squeel::Nodes::Stub.new(search[:method])) =~ "%#{word}%"
|
42
42
|
end.compact.inject(&:|)
|
data/lib/rails-tables/version.rb
CHANGED