class ActionView::Helpers::DateTimeSelector

def translated_date_order

def translated_date_order
  date_order = I18n.translate(:'date.order', locale: @options[:locale], default: [])
  date_order = date_order.map(&:to_sym)
  forbidden_elements = date_order - [:year, :month, :day]
  if forbidden_elements.any?
    raise StandardError,
      "#{@options[:locale]}.date.order only accepts :year, :month and :day"
  end
  date_order
end