Skip to content

Instantly share code, notes, and snippets.

@davekiss
Forked from gmacdougall/reimbursement_hook.rb
Last active September 11, 2015 19:26
Show Gist options
  • Save davekiss/a188cf7ca8ca271e29e7 to your computer and use it in GitHub Desktop.
Save davekiss/a188cf7ca8ca271e29e7 to your computer and use it in GitHub Desktop.
# config/initializers/reimbursement_hook.rb
Rails.application.config.to_prepare do
Spree::Reimbursement.reimbursement_success_hooks = [
->(reimbursement) { puts reimbursement }
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment