#6 new
Rishav Dixit

Add ability to pass the object name from phone helper

Reported by Rishav Dixit | 2009-03-20 07:06:42 UTC | 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.

New ticket Create new ticket

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

People watching this ticket

Pages