Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ponny opened this issue Oct 3, 2009 · 7 comments
Open

Comments

@ponny
Copy link

ponny commented Oct 3, 2009

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.

@benone
Copy link

benone commented Oct 13, 2009

I have the same issue with acts_as_taggable gem

@gsmendoza
Copy link

I have the same issue when using delayed job.

@benone
Copy link

benone commented Oct 31, 2009

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!

@krishnasrihari
Copy link

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.

@huacnlee
Copy link

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

@huacnlee
Copy link

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

@smtlaissezfaire
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants