diff --git a/lib/administrate/field/date.rb b/lib/administrate/field/date.rb index c248558624..9d372d751e 100644 --- a/lib/administrate/field/date.rb +++ b/lib/administrate/field/date.rb @@ -12,13 +12,6 @@ def date private - def format - options.fetch(:format, :default) - end - end - end -end - def format options.fetch(:format, :default) end diff --git a/spec/lib/fields/date_spec.rb b/spec/lib/fields/date_spec.rb index 00f480ffb7..9dc6e697d7 100644 --- a/spec/lib/fields/date_spec.rb +++ b/spec/lib/fields/date_spec.rb @@ -41,14 +41,6 @@ with_options(format: "%Y") field = options_field.new(:start_date, start_date, :show) - with_translations(:en, formats) do - expect(field.date).to eq("2015") - end - end - end - end -end - with_translations(:en, formats) do expect(field.date).to eq("2015") end