Displaying 1 result from an estimated 1 matches for "sportclub".
Did you mean:
shoutclub
2007 Aug 03
0
acts_as_paranoid and Association Extensions (has_one troubles)
...address, :as => :addressable, :dependent
=> :destroy do
def with_deleted
ContactAddress.with_scope(:find => {:conditions =>
"addressable_id = #{proxy_owner.id}"}) do
find_with_deleted(:all)
end
end
end
Loading development environment.
>> sc = SportClub.find_with_deleted(7)
=> #<SportClub:0xb769c1a4 @attributes={"number_of_members"=>nil,
"name"=>"Maastricht Wildcats", "updated_at"=>"2007-08-03 21:50:44",
"deleted_at"=>nil, "created_by"=>nil, "organizati...