rack-payment 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -212,7 +212,7 @@ module Rack #:nodoc:
212
212
  ['discover', 'Discover'] ].map { |value, name|
213
213
 
214
214
  if selected and selected.to_s == value.to_s
215
- "<options value='#{ value }' selected='selected'>#{ name }</option>"
215
+ "<option value='#{ value }' selected='selected'>#{ name }</option>"
216
216
  else
217
217
  "<options value='#{ value }'>#{ name }</option>"
218
218
  end
@@ -35,11 +35,6 @@
35
35
  <label for='credit_card_type'>Card Type</label>
36
36
  <select id='credit_card_type' name='credit_card[type]' />
37
37
  <%= options_for_credit_card_type credit_card.type %>
38
- <%= [ ['visa', 'Visa'], ['master', 'MasterCard'], ['american_express', 'American Express'], ['discover', 'Discover'] ].
39
- map {|value, name|
40
- selected = credit_card.type == value ? " selected='selected'" : nil
41
- "<option value='#{ value }'#{ selected }'>#{ name }</option>" }
42
- %>
43
38
  </select>
44
39
 
45
40
  <label for='credit_card_cvv'>CVV</label>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - remi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-27 00:00:00 -07:00
12
+ date: 2010-01-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency