Sha256: b155ea105dc34a6f8c750d3e6bfcbe911eb30ff15c4e494353266e10969d59ca
Contents?: true
Size: 738 Bytes
Versions: 8
Compression:
Stored size: 738 Bytes
Contents
class EssenceText < ActiveRecord::Base acts_as_essence acts_as_ferret(:fields => {:body => {:store => :yes}}, :remote => false) if Alchemy::Config.get(:ferret) == true before_save :check_ferret_indexing if Alchemy::Config.get(:ferret) == true # Saves the content from params def save_ingredient(params, options = {}) return true if params.blank? self.body = params["body"] self.link = params["link"] self.link_title = params["link_title"] self.link_class_name = params["link_class_name"] self.link_target = params["link_target"] self.public = options[:public] self.save end private def check_ferret_indexing if self.do_not_index self.disable_ferret(:always) end end end
Version data entries
8 entries across 8 versions & 1 rubygems