Skip to content

Commit

Permalink
Update medications_form_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
GayathriVenkatesh authored and julianguyen committed Feb 8, 2020
1 parent d29fc6c commit 9620f85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/helpers/medications_form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ def medication_name
required: true
}.merge(medication_basic_props('name'))
end

def medication_refill
{
type: 'date',
label: t('medications.form.refill'),
value: @medication.refill&.to_date || nil,
info: t('medications.form.refill_hint'),
required: false
required: true
}.merge(medication_basic_props('refill'))
end

Expand Down Expand Up @@ -221,6 +221,5 @@ def medication_field(type)
required: true
}.merge(medication_basic_props(type))
end

end
# rubocop:enable ModuleLength

0 comments on commit 9620f85

Please sign in to comment.