Sha256: 112eb04b3a3c5dfe85146e202f426cebd3c543556dd67e289cc4c5b2a583f0d5
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
module Georgia module Indexer module Tire module Ckeditor module Asset def self.extended(base) base.class_eval do include ::Tire::Model::Search include ::Tire::Model::Callbacks mapping do indexes :id, :index => :not_analyzed indexes :filename indexes :tags indexes :extension indexes :updated_at, :type => 'date' end def self.search_index model, params model.search(params[:query], page: (params[:page] || 1)) end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.7.2 | lib/georgia/indexer/tire/ckeditor/asset.rb |