spina-search 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spina/search_controller.rb +1 -1
- data/lib/spina/search/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e8d238d282a3ef4c285141a182db143472986e
|
4
|
+
data.tar.gz: 3936838f562279c0f83085deedd8be67ce595968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9638d58de901d1d4ec02dd2d09151d6c539d60d4b72587b6b4e436b1460899c918e43ece22e8ea586ad8ed72f797b5ef649ed85d03cd43c2bfd5b70dced76988
|
7
|
+
data.tar.gz: e4ff774b071a9aa85da0164a037d90cc6d65818617f71e286b0ba4e21b7d6397caf8ae263891d20c1a4d2d488dc9d142bf5e17faad696dc599873b90b1aeac0a
|
@@ -2,7 +2,7 @@ module Spina
|
|
2
2
|
class SearchController < ApplicationController
|
3
3
|
def query
|
4
4
|
query = params[:q]
|
5
|
-
render json: Page.active.where(
|
5
|
+
render json: Page.active.where('title LIKE ?', "%#{query}%").to_json
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/spina/search/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Jetten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|