Skip to content

Commit

Permalink
Merge pull request #1429 from projectblacklight/document_heading
Browse files Browse the repository at this point in the history
Re-add deprecated #document_heading method to the show presenter
  • Loading branch information
mejackreed committed Jul 5, 2016
2 parents e25d118 + 4062c17 commit 601d558
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/presenters/blacklight/show_presenter.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# frozen_string_literal: true
module Blacklight
class ShowPresenter
extend Deprecation
self.deprecation_horizon = 'Blacklight version 7.0.0'

# @param [SolrDocument] document
# @param [ActionController::Base] controller scope for linking and generating urls
# @param [Blacklight::Configuration] configuration
Expand Down Expand Up @@ -53,6 +56,12 @@ def heading
field_values(field_config(f), value: @document[f])
end

# @deprecated
def document_heading
heading
end
deprecation_deprecate document_heading: "replaced by #heading"

##
# Render the show field value for a document
#
Expand Down

0 comments on commit 601d558

Please sign in to comment.