blob: f91d9c97ab5ac35d81d8bf65a30c825a4e052315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module BillingHelper
def braintree_form_for(object, options = {}, &block)
options.reverse_merge! params: @result && @result.params[object],
errors: @result && @result.errors.for(object),
builder: BraintreeFormHelper::BraintreeFormBuilder,
url: Braintree::TransparentRedirect.url
form_for object, options, &block
end
end
|