Custom information while using multipass gem
Is any of this still possible?
https://help.tenderapp.com/faqs/setup-installation/include-custom-i...
I can't figure out how to make it go. I want to send in a couple extra bits of info, but am struggling to figure out if it still works while using the multipass gem.
-Jeff
Discussions are closed to public comments.
If you need help with Tender please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Courtenay on 12 Feb, 2010 12:59 AM
Yes, you can still send custom attributes, just like that FAQ says.
2 Posted by jmancuso on 03 Mar, 2010 02:45 AM
this took forever for me to get back to
You can probably still do it the way the faq says, using the "old" multipass gem:
http://github.com/entp/tender_multipass
But as far as I can tell, you guys have deprecated that in favor of this new gem:
http://github.com/entp/multipass
We use this gem, and it's not entirely clear to me how to include the custom info. Generally speaking, it is a tad confusing to have documentation up about both.
Thanks
-Jeff
Support Staff 3 Posted by Courtenay on 03 Mar, 2010 03:02 AM
You just send any key/value pairs you want. (see: ':some_other_thing' in this)
class User
def multipass
@multipass ||= self.class.multipass.encode(:email => email,
:name => name, :expires => 30.minutes.from_now,
:unique_id => "ed-#{id}", :alternate_id => email,
:some_other_thing => product.name
:external_id => id, :external_url =>
"http://expandrive.com/admin/users/#{id}")
end
end
Will closed this discussion on 18 Aug, 2010 10:11 PM.