search for: unescoped

Displaying 1 result from an estimated 1 matches for "unescoped".

Did you mean: unescaped
2012 Apr 17
0
Request for adding an "alias"/"as" to ActiveRecord
...&:id)).where(Field.where(''parent_id = f1.id'').exists) This would still raise an error since the default scope will use "condition_type.deleted = ''f''" instead of "f1.deleted = ''f''". For this particular case, using Field.unescoped.from... would do it, but can you see how it would be useful to add an "alias" or "as" method to ActiveRecord? Thank you for your patience on reading all of this. Cheers, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rai...