Created
September 5, 2012 19:34
-
-
Save ecomba/3643179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Someclass < Struct.new(:listener) | |
def sign_up attributes | |
post '/sign-up', attributes, | |
success: ->(response) { listener.user_signed_up attributes.merge(response) }, | |
error: ->(cause) {listener.error_signing_up_user cause} | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment