Skip to content

Commit

Permalink
Deprecate delegating application_name to the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 6, 2017
1 parent 152e32e commit 5912f98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/helpers/blacklight/blacklight_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ module Blacklight::BlacklightHelperBehavior
#
# @return [String] the application name
def application_name
return Rails.application.config.application_name if Rails.application.config.respond_to? :application_name
if Rails.application.config.respond_to? :application_name
Deprecation.warn(self, "BlacklightHelper#application_name will no longer delegate to config.application_name in version 7.0. Set the i18n for blacklight.application_name instead")
return Rails.application.config.application_name
end

t('blacklight.application_name')
end
Expand Down

0 comments on commit 5912f98

Please sign in to comment.