On Jueves, 25 de Agosto de 2011 06:29:00 Shreya Bhatia escribió:
> Hi Rafael,
> 
> I want to include the soft-deleted records in my list of records.
> Could you tell me how did you do this?
> 
> Thanks,
> Shreya

I don't remember how acts_as_paranoid works. You must override destroy method 
in the model if plugin doesn't do it. Also you must set 
conditions_for_collection to filter out deleted records in the controller, or 
override beginning_of_chain to use a scope method, unless acts_as_paranoid set 
a default_scope to filter out the records, in that case maybe you don't need 
anymore.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to