Displaying 4 results from an estimated 4 matches for "belongs_to_without_delet".
Did you mean:
belongs_to_without_deleted
2008 Feb 04
0
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 :belon...
2007 Jan 28
0
problems with acts_as_paranoid (noticed while using acts_as_versioned)
...9;m using the trunk versions of both plugins.
I''m running into this error when I run a migration to try and create
the versioned table for the model ''Note''
stack level too deep
/Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_paranoid/init.rb:5:in `belongs_to_without_deleted''
/Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_paranoid/init.rb:5:in `belongs_to_without_deleted''
/Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_paranoid/init.rb:5:in `belongs_to''
/Users/Adam/dev/sweetspot/app/trunk/config/...
2008 Apr 17
4
acts_as_paranoid is making me crazy
...ing the data that is inserted on the migration to one record it
still throws the same error.
When running the migrate with the --trace option I get the following:
=========
rake aborted!
stack level too deep
/Users/chris/Documents/Projects/Rails/my_app/vendor/plugins/acts_as_paranoid/init.rb:4:in
`belongs_to_without_deleted''
/Users/chris/Documents/Projects/Rails/my_app/vendor/plugins/acts_as_paranoid/init.rb:4:in
`belongs_to_without_deleted''
/Users/chris/Documents/Projects/Rails/my_app/vendor/plugins/acts_as_paranoid/init.rb:4:in
`belongs_to''
/Users/chris/Documents/Projects/Rails/my_app/ap...
2006 Aug 16
0
acts_as_paranoid and alias_method_chain
...appens in acts_as_paranoid''s init.rb. here''s the whole file. the
alias_method_chain is near the bottom. please advise.
class << ActiveRecord::Base
def belongs_to_with_deleted(association_id, options = {})
with_deleted = options.delete :with_deleted
returning belongs_to_without_deleted(association_id, options) do
if with_deleted
reflection = reflect_on_association(association_id)
association_accessor_methods(reflection,
Caboose::Acts::BelongsToWithDeletedAssociation)
association_constructor_method(:build, reflection,
Caboose::Ac...