cache-money icon indicating copy to clipboard operation
cache-money copied to clipboard

repository delegated to @cache_config.repository, but @cache_config is nil

Open ponny opened this issue 15 years ago • 7 comments

I've tried getting backgroundrb and background-fu going. Cache money seems to be getting in the way somehow - /var/lib/gems/1.8/gems/nkallen-cache-money-0.2.5/lib/cash/config.rb:18:in `repository': repository delegated to @cache_config.repository, but @cache_config is nil: BdrbJobQueue(id: integer, args: binary, worker_name: string, worker_method: string, job_key: string, taken: integer, finished: integer, timeout: integer, priority: integer, submitted_at: datetime, started_at: datetime, finished_at: datetime, archived_at: datetime, tag: string, submitter_info: string, runner_info: string, worker_key: string, scheduled_at: datetime) (RuntimeError)

It did the same thing for background-fu's Job model too. I have absolutely no idea what is wrong with it.

ponny avatar Oct 03 '09 16:10 ponny

I have the same issue with acts_as_taggable gem

benone avatar Oct 13 '09 06:10 benone

I have the same issue when using delayed job.

gsmendoza avatar Oct 31 '09 07:10 gsmendoza

I found a solution for this issue.

The thing is cache-money config file is loading after acts_as_taggable gem. So I placed "require File.join(RAILS_ROOT, "config", "initializers","cache_money.rb")" to begin of acts_as_taggable main file (lib/acts-as-taggable-on.rb) and it works!

benone avatar Oct 31 '09 08:10 benone

I have same problem and solved because I am using active_record session store. Now I changed to memcached store as config.action_controller.session_store = :mem_cache_store in environment.rb file and working fine now.

krishnasrihari avatar Dec 01 '09 14:12 krishnasrihari

@benone I was modified like you, but the other issue "stack level too deep" appeared

huacnlee avatar Jan 11 '10 09:01 huacnlee

I was solution too. same as @benone's way, but you need use CacheMoney with plugins, not Gem

huacnlee avatar Jan 11 '10 09:01 huacnlee

Yeah - it's a preloading issue - fixed in this branch:

http://github.com/smtlaissezfaire/cache-money/tree/preloading_error

smtlaissezfaire avatar Jan 17 '10 11:01 smtlaissezfaire