lib/locomotive/engine.rb in locomotivecms-3.2.1 vs lib/locomotive/engine.rb in locomotivecms-3.3.0.rc1

- old
+ new

@@ -73,9 +73,15 @@ initializer 'locomotive.i18n' do |app| app.config.i18n.available_locales = Locomotive.config.locales end + initializer 'locomotive.notifications' do + ActiveSupport::Notifications.subscribe('steam.serve.url_redirection') do |name, start, finish, id, payload| + Locomotive::Site.inc_url_redirection_counter(payload[:site_id], payload[:url]) + end + end + initializer 'steam' do |app| require 'locomotive/steam_adaptor' end end