tawork 0.0.20 → 0.0.21

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.
data/app/models/page.rb CHANGED
@@ -3,6 +3,16 @@ class Page < ActiveRecord::Base
3
3
 
4
4
  include Tire::Model::Search
5
5
  include Tire::Model::Callbacks
6
+
7
+ mapping do
8
+ indexes :id, :index => :not_analyzed
9
+ indexes :ancestry, :index => :not_analyzed
10
+ indexes :title, :analyzer => 'snowball', :boost => 100
11
+ indexes :body, :analyzer => 'snowball'
12
+ indexes :tags, :as => "tag_list"
13
+ indexes :created_at, :type => 'date', :include_in_all => false
14
+ indexes :updated_at, :type => 'date', :include_in_all => false
15
+ end
6
16
 
7
17
  has_ancestry #touch: true
8
18
  acts_as_list scope: [:ancestry]
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.20'
2
+ VERSION = '0.0.21'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-14 00:00:00.000000000 Z
12
+ date: 2014-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails