Skip to content

Commit

Permalink
fix: remove double function
Browse files Browse the repository at this point in the history
  • Loading branch information
LuCCoelho committed Jun 13, 2024
1 parent 3ad7959 commit 4230690
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions lib/administrate/field/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ def date

private

def format
options.fetch(:format, :default)
end
end
end
end

def format
options.fetch(:format, :default)
end
Expand Down
8 changes: 0 additions & 8 deletions spec/lib/fields/date_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4230690

Please sign in to comment.