Remove data_provide and data_date_format attributes

This commit is contained in:
Paul Chavard 2018-01-18 11:03:31 +01:00
parent 3fbee9fd0d
commit fdd6cedeb8
11 changed files with 16 additions and 51 deletions

View file

@ -17,15 +17,6 @@ class Champ < ActiveRecord::Base
mandatory
end
def data_provide
return 'datepicker' if (type_champ == 'datetime') && !(BROWSER.value.chrome? || BROWSER.value.edge?)
return 'typeahead' if type_champ == 'address'
end
def data_date_format
('dd/mm/yyyy' if type_champ == 'datetime')
end
def same_hour? num
same_date? num, '%H'
end