Skip to content

Commit c202b4c

Browse files
committed
Fix default lambda
1 parent 07f85f7 commit c202b4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-persistence/test/unit/model_find_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class DummyFindModel
1919

2020
attribute :title, type: String
2121
attribute :count, type: Integer, default: 0
22-
attribute :created_at, type: DateTime, default: lambda { |o,a| Time.now.utc }
23-
attribute :updated_at, type: DateTime, default: lambda { |o,a| Time.now.utc }
22+
attribute :created_at, type: DateTime, default: lambda { Time.now.utc }
23+
attribute :updated_at, type: DateTime, default: lambda { Time.now.utc }
2424
end
2525

2626
setup do

0 commit comments

Comments
 (0)