
Add the ability to pass conditions
Reported by Rishav Dixit | March 20th, 2009 @ 06:42 AM | in 0.1
Use the following code:
Usage:
implements_phone fields => [:phone], :if => proc {|obj| obj.enabled}
Plugin:
validates_presence_of field, :if => options[:if]
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
See: http://github.com/sazwqa/implements-phone