Module: ActiveRecordSunspotter::Sunspotability

Defined in:
lib/active_record_sunspotter/sunspotability.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/active_record_sunspotter/sunspotability.rb', line 2

def self.included(base)
	base.extend(ClassMethods)
	base.class_eval do
		
		#
		#	MUST delay execution of code until included as cattr_accessor is ActiveRecord specific
		#
		cattr_accessor :all_sunspot_columns
		self.all_sunspot_columns = []		#	order is only relevant to the facets
	end
end