add payment views, styling and its helper methods

This commit is contained in:
Rishabh Saxena 2016-06-18 18:30:17 +05:30
parent 81ef41be8b
commit 14594c7a4d
7 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,13 @@
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