You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
351 B

4 years ago
module FullstoryHelper
def insert_fullstory
if fullstory_enabled?(current_user)
render(partial: 'shared/fullstory', locals: { org: Cartodb.get_config(:fullstory, 'org') })
end
end
def fullstory_enabled?(user)
Cartodb.get_config(:fullstory, 'org').present? && user.try(:fullstory_enabled?) && params[:cookies] != '0'
end
end