Custom information while using multipass gem

jmancuso's Avatar

jmancuso

11 Feb, 2010 03:11 PM

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

  1. Support Staff 1 Posted by Courtenay on 12 Feb, 2010 12:59 AM

    Courtenay's Avatar

    Yes, you can still send custom attributes, just like that FAQ says.

  2. 2 Posted by jmancuso on 03 Mar, 2010 02:45 AM

    jmancuso's Avatar

    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

  3. Support Staff 3 Posted by Courtenay on 03 Mar, 2010 03:02 AM

    Courtenay's Avatar

    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

  4. Will closed this discussion on 18 Aug, 2010 10:11 PM.

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