
Add ability to pass the object name from phone helper
Reported by Rishav Dixit | March 20th, 2009 @ 07:06 AM | in 0.1
Use this code:
def phone_field(object, field, required=true, object_name = object.class.to_s.underscore)
this can be passed to generate phone hash, this resolves the follwing cases:
object = user_member expected object name = user_member (user_member.class.to_s.underscore) actual object name = usermember
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