Sha256: 611b7168849c3af7369461e6abd9632572dfc4331d8cd514e7715c37b6f0aa58
Contents?: true
Size: 619 Bytes
Versions: 57
Compression:
Stored size: 619 Bytes
Contents
module Spotlight module SolrDocument ## # ActiveModel stubs to make {::SolrDocument}s work as activemodel objects module ActiveModelConcern extend ActiveSupport::Concern included do include Spotlight::ArLight extend ActiveModel::Callbacks define_model_callbacks :save end def save run_callbacks :save do # no-op end end def to_key [id] end def persisted? true end def destroyed? false end def new_record? !persisted? end end end end
Version data entries
57 entries across 57 versions & 1 rubygems