add analytics tools
This commit is contained in:
@@ -15,7 +15,7 @@ Rails.configuration.to_prepare do
|
||||
|
||||
ActiveStorage::DirectUploadsController.before_action do
|
||||
next if current_user
|
||||
next if Submitter.find_signed(cookies.signed[:submitter_sid])
|
||||
next if Submitter.find_signed(cookies[:submitter_sid])
|
||||
|
||||
head :forbidden
|
||||
end
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Rollbar.configure do |config|
|
||||
config.access_token = ENV.fetch('ROLLBAR_ACCESS_TOKEN', nil)
|
||||
|
||||
config.enabled = !config.access_token.nil?
|
||||
|
||||
config.exception_level_filters['ActionController::RoutingError'] = 'ignore'
|
||||
|
||||
config.environment = ENV['ROLLBAR_ENV'].presence || Rails.env
|
||||
end
|
||||
Reference in New Issue
Block a user