Skip to content

Commit

Permalink
#presenter() should fall back to previous behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 5, 2016
1 parent e25d118 commit e1930a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/blacklight/blacklight_helper_behavior.rb
Expand Up @@ -332,7 +332,8 @@ def presenter(document)
when 'index'
index_presenter(document)
else
raise "Unable to determine presenter type for #{action_name} on #{controller_name}"
Deprecation.warn(Blacklight::BlacklightHelperBehavior, "Unable to determine presenter type for #{action_name} on #{controller_name}, falling back on deprecated Blacklight::DocumentPresenter")
presenter_class.new(document, self)
end
end

Expand Down

0 comments on commit e1930a9

Please sign in to comment.