Sha256: 1a301c3c07baf24b2978b8fecdfe87d58cf26b8f746a722463b7fe4369b39b52

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

require 'sunspot_rails'

begin
  Refinery::Page.class_eval do
    searchable do
      text :title, :meta_description, :menu_title, :browser_title

      text :all_page_part_content do
        parts.map { |part| part.body }
      end
    end
  end
rescue NameError
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-solr-1.0.9 app/decorators/models/refinery/page_decorator.rb
refinerycms-solr-1.0.8 app/decorators/models/refinery/page_decorator.rb
refinerycms-solr-1.0.7 app/decorators/models/refinery/page_decorator.rb
refinerycms-solr-1.0.6 app/decorators/models/refinery/page_decorator.rb
refinerycms-solr-1.0.4 app/decorators/models/refinery/page_decorator.rb
refinerycms-solr-1.0.3 app/decorators/models/refinery/page_decorator.rb
refinerycms-solr-1.0.1 app/decorators/models/refinery/page_decorator.rb