Displaying 1 result from an estimated 1 matches for "secondrecord".
Did you mean:
second_records
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
...=> {
:lft { :index => :untokenized_omit_norms },
:name => {},
:desc => {},
:body => {:strore => :yes},
:role => {},
})
def self.inheritance_column
''role''
end
# methods below .....
end
class FirstRecord < Record
end
class SecondRecord < Record
end
class ApplicationController < ActionController::Base
after_filter { CachedModel.cache_reset }
end
Here''s my CachedModel setup:
- config/environment.rb:
# Include your application configuration below
require ''cached_model''
CachedModel.use_local_cache...