Sha256: 738376f7aef3ba00e61607a0f4ce8cee634a76d4e7ecf81aa438913cbe77c2d5
Contents?: true
Size: 663 Bytes
Versions: 5
Compression:
Stored size: 663 Bytes
Contents
begin # require 'time' # require 'date' require 'rsolr' rescue LoadError require 'rubygems' require 'rsolr' end %w(configuration collection index_builder session active_record).each do |file| require File.join(File.dirname(__FILE__), 'flare', file) end ActiveRecord::Base.send(:include, Flare::ActiveRecord) module Flare class << self def session @session ||= Flare::Session.new end def indexed_models @@indexed_models ||= [] end def log(message) if Object.const_defined?("ActiveRecord") ::ActiveRecord::Base.logger.debug(message) else puts message end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
flare-1.4.4 | lib/flare.rb |
flare-1.4.3 | lib/flare.rb |
flare-1.4.2 | lib/flare.rb |
flare-1.4.1 | lib/flare.rb |
flare-1.4.0 | lib/flare.rb |