From d9af1f89d7e8e6bfdeb1ac7fbb2e1e8eaef43d55 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Fri, 18 Dec 2015 15:06:04 -0800 Subject: [PATCH] Stub Blacklight::Document#marked_for_destruction? for API compatibility with Rails 5 --- app/models/concerns/blacklight/document/active_model_shim.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/concerns/blacklight/document/active_model_shim.rb b/app/models/concerns/blacklight/document/active_model_shim.rb index 934ebd2452..c8e3fd23d8 100644 --- a/app/models/concerns/blacklight/document/active_model_shim.rb +++ b/app/models/concerns/blacklight/document/active_model_shim.rb @@ -59,6 +59,10 @@ def new_record? false end + def marked_for_destruction? + false + end + ## # #to_partial_path is also defined in Blacklight::Document, but # ActiveModel::Conversion (included above) will overwrite that..