search for: belongs_to_with_delet

Displaying 2 results from an estimated 2 matches for "belongs_to_with_delet".

2007 Jan 28
0
problems with acts_as_paranoid (noticed while using acts_as_versioned)
...`acts_as_versioned'' /Users/Adam/dev/sweetspot/app/trunk/config/../app/models/note.rb:2 All note.rb contains is this: class Note < ActiveRecord::Base acts_as_versioned end looking at the code in acts_as_paranoid, I can''t figure out why it is getting stuck in a loop: 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...
2006 Aug 16
0
acts_as_paranoid and alias_method_chain
...getting: undefined method `alias_method_chain'' for #<Class:ActiveRecord::Base> (NoMethodError) It happens 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, C...