Displaying 1 result from an estimated 1 matches for "68cbf3b6".
2006 May 12
4
validates_uniqueness_of with a condition
Hi,
I need to check the uniqueness of an attribute (a doc number) using a
condition (a specific year), I''ve found validates_uniqueness_of
:number, but I need to tell it I just want to check a specific year.
I''ve found :scope but I haven''t really understood it''s meaning, Can I
scope on a specific year?
Thanks,
Enrico
--
"The only thing necessary for the