Skip to content

Instantly share code, notes, and snippets.

@rebo
Created December 24, 2012 16:30
Show Gist options
  • Select an option

  • Save rebo/4369903 to your computer and use it in GitHub Desktop.

Select an option

Save rebo/4369903 to your computer and use it in GitHub Desktop.
module Authentication
def authenticate!
# authentication check
end
end
class PurchasingProcess
include AliasDCI::Context
role :authenticating_user, Authentication
...
def call
in_conext do
authenticating_user.authenticate!
# do purchase...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment