winton / acts_as_archive

Don't delete your records, move them to a different table
MIT License
372 stars 87 forks source link

Don't work in Rails 3 #9

Closed grimen closed 13 years ago

grimen commented 14 years ago

In my model:

class Product < ActiveRecord::Base
  acts_as_archive
end

Error:

ActionController::RoutingError (undefined local variable or method `acts_as_archive' for #< Class:0x000001037b1930 >):
  app/models/product.rb:1:in `'
  app/models/product.rb:1:in `'
  app/controllers/products_controller.rb:1:in `'
clemens commented 14 years ago

Any plans on fixing this up for Rails 3 properly?

emilford commented 14 years ago

Also interested in a Rails 3 version. Thanks!

ariera commented 14 years ago

I'm interested as well Thanks : )

bhavinjavia commented 14 years ago

I'm evaluating this gem for my Rails 2.3.8 project. We plan to move to Rails 3 soon. Is there any plan to support Rails 3 within the next month or two ?

nielsm commented 14 years ago

Me too

vadimt commented 14 years ago

me three

jacklin10 commented 14 years ago

I would be interested in rails 3 compatibility also. At least mention if you plan on making this upgrade. Thanks so much!

xxx commented 14 years ago

Hi,

I've spent the day updating my fork for Rails 3 compatability. The spec suite is fully green and hand-testing in a somewhat trivial app works fine as well, including ActsAsArchive.update

It's at http://github.com/xxx/acts_as_archive

I'll take bug reports for awhile, though I don't intend to take the gem over long-term.

This fork does not support Rails 2.x, though.

winton commented 13 years ago

Hey guys,

You'll be happy to hear that version 0.3.0 now supports both Rails 2 and 3. I would love to get some feedback before I announce it officially.

xxx commented 13 years ago

Initial testing looks good here.

winton commented 13 years ago

Thanks Michael. Thank you for the work in your branch as well, it helped me make some hard decisions relating to the new version.

grimen commented 13 years ago

@winton: Awesome effort! I never thought anyone would have energy enough to spend on it so I was about to nuke it from my app. :)