mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Remove monkey patch
This commit is contained in:
parent
157b383738
commit
ec76a6bbc0
2 changed files with 2 additions and 5 deletions
|
@ -41,10 +41,10 @@
|
|||
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<%= f.text_field :valid_from, value: f.object.valid_from.try(:to_s, :dshort),
|
||||
<%= f.text_field :valid_from, value: f.object.valid_from.try(:to_date),
|
||||
class: 'form-control js-datepicker' %>
|
||||
<span class="input-group-addon">-</span>
|
||||
<%= f.text_field :valid_to, value: f.object.valid_to.try(:to_s, :dshort),
|
||||
<%= f.text_field :valid_to, value: f.object.valid_to.try(:to_date),
|
||||
class: 'form-control js-datepicker' %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# Some handy day formats
|
||||
Date::DATE_FORMATS[:dshort] = "%d.%m.%Y"
|
||||
Time::DATE_FORMATS[:dshort] = "%d.%m.%Y"
|
Loading…
Add table
Add a link
Reference in a new issue