iorum-ie / acts_as_viewable

Other
5 stars 2 forks source link

acts_as_viewable no longer works when I use acts_as_archive #1

Open angelacode opened 13 years ago

angelacode commented 13 years ago

I introduced a gem acts_as_archive which allows me to do a "soft delete" -- but acts_as_viewable stops working -- it doesn't recognize the method....is there some overlap between the two?

iorum-ie commented 13 years ago

That sounds odd, we're using acts_as_viewable in conjunction with acts_as_archive on a Rails 2.3 project here successfully.

Are you on Rails 2 or 3? I assume acts_as_viewable previously working before introducing acts_as_archive?

angelacode commented 13 years ago

I am on Rails 3 now...Ii was on Rails 2....

angelacode commented 13 years ago

I get the following:

undefined method `acts_as_viewable' for #Class:0xb54aa8c0

iorum-ie commented 13 years ago

We have a rough internal version for rails 3 running on an app here, I've just pushed the code we are using to the rails 3 branch here.

https://github.com/iorum/acts_as_viewable/tree/rails3

Use the rails generate syntax rather than the script/generate described in the Readme.

Note: There are no complete specs/test for this version, we have yet to implement these, so you have been warned.

angelacode commented 13 years ago

hmm...on Rails 2 app it doesn't seem o be working...I still get this same error....how can I debug?

angelacode commented 13 years ago

do I need to require a file in the model?

angelacode commented 13 years ago

Could it have something to do with this plugin? plugins/searchlogic/lib/searchlogic/named_scopes/conditions.rb:81:in method_missing':NoMethodError: undefined methodacts_as_viewable'

iorum-ie commented 13 years ago

It could have something to do with that, have you tried this without searchlogic?