Hi, I created some new models that do not extend ActiveRecord::Base. For some reason, these classes are being cached in development mode. Controllers are not cached, neither are models extending ActiveRecord::Base. Has anyone else seen this? Here are my relevant development.rb settings: Dependencies.mechanism = :load ActionController::Base.consider_all_requests_local = true ActionController::Base.perform_caching = false thanks, Jeff
On 9/27/05, Jeff Cole <cole.jeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, I created some new models that do not extend > ActiveRecord::Base. For some reason, these classes are being cached > in development mode. Controllers are not cached, neither are models > extending ActiveRecord::Base. Has anyone else seen this? > > Here are my relevant development.rb settings: > Dependencies.mechanism = :load > ActionController::Base.consider_all_requests_local = true > ActionController::Base.perform_caching = falseInclude the models with ''require_dependency'', not ''require''.
Hi> Include the models with ''require_dependency'', not ''require''.It seems quite a few people are having questions related to automatic loading (including me :) so I extended the article on require_dependency on the wiki a bit: http://wiki.rubyonrails.org/rails/pages/RequireDependency Additions/Corrections welcome! Regards Manuel Holtgrewe
Possibly Parallel Threads
- [PATCH] remove rails2.3 deprecated config.action_view.cache_template_extensions
- Edge Javascript caching just not working
- session_options[:secure] resets session_id on every request
- Getting rspec error: Net::SMTPServerBusy: Relay access denied
- Am I misunderstanding "require_dependency"?