Skip to content
Browse files

no need to specify default status in double form

  • Loading branch information...
1 parent f523900 commit 1c7de26397ef4556e17ed9fb3ad865dd40828994 @artemave artemave committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/doubles/_form.haml
View
2 views/doubles/_form.haml
@@ -20,7 +20,7 @@
%label{:for => 'double_status'} Status
%select#double_status{:name => 'double[status]'}
- statuses.each do |s|
- %option{:name => s, :selected => ((@double.status || 200) == s)}= s
+ %option{:name => s, :selected => (@double.status == s)}= s
%p
%input{:type => 'submit', :value => 'Save'}

0 comments on commit 1c7de26

Please sign in to comment.
Something went wrong with that request. Please try again.