lib/blacklight/engine.rb in blacklight-5.3.0 vs lib/blacklight/engine.rb in blacklight-5.4.0.rc1

- old
+ new

@@ -17,8 +17,16 @@ Dir.glob(File.join('railties', '*.rake')).each do |railtie| load railtie end end end + + initializer "blacklight.secret_key" do |app| + if app.respond_to?(:secrets) + Blacklight.secret_key ||= app.secrets.secret_key_base + elsif app.config.respond_to?(:secret_key_base) + Blacklight.secret_key ||= app.config.secret_key_base + end + end end -end \ No newline at end of file +end