module Flex::ModelIndexer
Public Class Methods
flex()
click to toggle source
# File lib/flex/model_indexer.rb, line 9 def self.flex; @flex end
included(base)
click to toggle source
# File lib/flex/model_indexer.rb, line 4 def self.included(base) base.class_eval do @flex ||= ClassProxy::Base.new(base) @flex.extend(ClassProxy::ModelSyncer) @flex.extend(ClassProxy::ModelIndexer).init def self.flex; @flex end end end
Public Instance Methods
flex()
click to toggle source
# File lib/flex/model_indexer.rb, line 13 def flex @flex ||= InstanceProxy::ModelIndexer.new(self) end
flex_indexable?()
click to toggle source
# File lib/flex/model_indexer.rb, line 21 def flex_indexable? true end
flex_source()
click to toggle source
# File lib/flex/model_indexer.rb, line 17 def flex_source attributes.reject {|k| k.to_s =~ /^_*id$/} end