diff --git a/app/views/alchemy/admin/resources/_form.html.erb b/app/views/alchemy/admin/resources/_form.html.erb index c2f035091a..2020b4f840 100644 --- a/app/views/alchemy/admin/resources/_form.html.erb +++ b/app/views/alchemy/admin/resources/_form.html.erb @@ -5,7 +5,7 @@ label_method: relation[:attr_method], include_blank: Alchemy.t(:blank, scope: 'resources.relation_select'), input_html: {class: 'alchemy_selectbox'} %> - <% elsif attribute[:type] == :datetime || attribute[:type] == :time %> + <% elsif attribute[:type].to_s =~ /(date|time)/ %>