I. E. Smith-Heisters
2008-Feb-04 22:01 UTC
gettext and acts_as_paranoid gives stack overflow
HI all, I just started using acts_as_paranoid, and I''ve been using gettext for a while. Now I get the below errors when I run rake gettext:updatepo. It''s interesting that the errors seem to stack up, so the first file just errors on belongs_to_without_deleted, the second file has a layer of eval, the second has two layers of eval, and so forth. I''ve tried for a while to fix it by requiring this and that at different points in the load process. In the end, the only solution I''ve found is to comment out "alias_method_chain :belongs_to, :deleted" in acts_as_paranoid/ init.rb, which is hardly a suitable permanent solution. Thanks much for any advice you might be able to offer. - Ian Ignored ''app/models/cafe_application.rb''. Solve dependencies first. /home/ian/Work/Starbucks/Star-cafe/main/trunk/star_cafe/vendor/plugins/ acts_as_paranoid/init.rb:3:in `belongs_to_without_deleted'': stack level too deep Ignored ''app/models/criteria_set.rb''. Solve dependencies first. /home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/lib/ruby/gems/1.8/ gems/gettext-1.10.0/lib/gettext/parser/active_record.rb:78:in `eval'': / home/ian/Work/Starbucks/Star-cafe/main/trunk/star_cafe/vendor/plugins/ acts_as_paranoid/init.rb:3:in `belongs_to_without_deleted'': stack level too deep Ignored ''app/models/document.rb''. Solve dependencies first. /home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/lib/ruby/gems/1.8/ gems/gettext-1.10.0/lib/gettext/parser/active_record.rb:78:in `eval'': / home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/lib/ruby/gems/1.8/ gems/gettext-1.10.0/lib/gettext/parser/active_record.rb:78:in `eval'': / home/ian/Work/Starbucks/Star-cafe/main/trunk/star_cafe/vendor/plugins/ acts_as_paranoid/init.rb:3:in `belongs_to_without_deleted'': stack level too deep Ignored ''app/models/user.rb''. Solve dependencies first. /home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/lib/ruby/gems/1.8/ gems/gettext-1.10.0/lib/gettext/parser/active_record.rb:78:in `eval'': / home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/lib/ruby/gems/1.8/ gems/gettext-1.10.0/lib/gettext/parser/active_record.rb:78:in `eval'': / home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/lib/ruby/gems/1.8/ gems/gettext-1.10.0/lib/gettext/parser/active_record.rb:78:in `eval'': / home/ian/Work/Starbucks/Star-cafe/main/trunk/star_cafe/vendor/plugins/ acts_as_paranoid/init.rb:3:in `belongs_to_without_deleted'': stack level too deep Ignored ''app/models/processor.rb''. Solve dependencies first. <snip> po/starcafe.pot ............................................................................................................................... done. po/en/starcafe.po ............................................................................................................................... done. po/es/starcafe.po ............................................................................................................................... done. (in /home/ian/Work/Starbucks/Star-cafe/main/trunk/star_cafe) ** Invoke gettext:updatepo (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute gettext:updatepo Loaded suite /home/ian/Work/Starbucks/Star-cafe/main/trunk/usr/bin/ rake Started Finished in 0.000204 seconds. 0 tests, 0 assertions, 0 failures, 0 errors --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- problems with acts_as_paranoid (noticed while using acts_as_versioned)
- acts_as_paranoid is making me crazy
- acts_as_paranoid and alias_method_chain
- acts_as_paranoid --> undefined method `constrain' for class `Class'
- acts_as_paranoid, aliasing and nested scopes in Rails 1.1