14 lines
317 B
Ruby
14 lines
317 B
Ruby
|
|
module PaymentsHelper
|
||
|
|
def months
|
||
|
|
(1..12).collect{|n| ["#{n} - #{Date::MONTHNAMES[n]}", n]}
|
||
|
|
end
|
||
|
|
|
||
|
|
def years
|
||
|
|
(Date.current.year..Date.current.year + 15)
|
||
|
|
end
|
||
|
|
|
||
|
|
def card_types
|
||
|
|
[[['Visa', 'visa'], ['MasterCard', 'master'], ['Discover', 'discover'], ['American Express', 'american_express']]]
|
||
|
|
end
|
||
|
|
end
|