atpay_buttons 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/atpay_buttons.gemspec +1 -1
- data/lib/atpay/button/generator.rb +2 -2
- data/lib/atpay/button/template.rb +2 -0
- metadata +1 -1
data/atpay_buttons.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "atpay_buttons"
|
7
|
-
spec.version = '1.3.
|
7
|
+
spec.version = '1.3.2'
|
8
8
|
spec.date = '2014-01-31'
|
9
9
|
spec.authors = ["Thomas Pastinsky", "Glen Holcomb", "James Kassemi", "Isaiah Baca"]
|
10
10
|
spec.email = ["dev@atpay.com"]
|
@@ -53,11 +53,11 @@ module AtPay
|
|
53
53
|
# @param email [String] the email address the button is intended for.
|
54
54
|
#
|
55
55
|
# @return [AtPay::Button::Template]
|
56
|
-
def template(email)
|
56
|
+
def template(email = nil)
|
57
57
|
Template.new(@options.update(:email => email, :amount => amount))
|
58
58
|
end
|
59
59
|
|
60
|
-
def to_html(token, email)
|
60
|
+
def to_html(token, email = nil)
|
61
61
|
@options.update({:token => token})
|
62
62
|
template(email).render(token: token, :email => email)
|
63
63
|
end
|