Module: N1Loader::ActiveRecord::Base
- Extended by:
- ActiveSupport::Concern
- Includes:
- Loadable
- Defined in:
- lib/n1_loader/active_record/base.rb
Overview
Extension module for ActiveRecord::Base
Instance Method Summary collapse
-
#reload ⇒ Object
Clear N1Loader cache on reloading the object.
Methods included from Loadable
included, #n1_clear_cache, #n1_loader, #n1_loader_reload, #n1_loaders
Methods included from N1Loader::ArLazyPreload::Loadable
Instance Method Details
#reload ⇒ Object
Clear N1Loader cache on reloading the object
12 13 14 15 |
# File 'lib/n1_loader/active_record/base.rb', line 12 def reload(*) n1_clear_cache super end |