action_tracker.rb 603 Bytes
require 'noosfero/i18n'

# ActionTracker plugin stuff

ActionTrackerConfig.verbs = {

  create_article: {
  },

  new_friendship: {
    type: :groupable
  },

  join_community: {
    type: :groupable
  },

  add_member_in_community: {
  },

  upload_image: {
    type: :groupable
  },

  leave_scrap: {
  },

  leave_scrap_to_self: {
  },

  reply_scrap_on_self: {
  },

  create_product: {
  },

  update_product: {
  },

  remove_product: {
  },

  favorite_enterprise: {
  },

}

ActionTrackerConfig.current_user = proc do
  User.current.person rescue nil
end

ActionTrackerConfig.timeout = 24.hours