module AppfluxRuby::Rails::ControllerMethods::InstanceMethods

Private Instance Methods

__send_user_info_to_bugflux__(notifier_object) click to toggle source
# File lib/appflux_ruby/rails/controller_methods.rb, line 41
def __send_user_info_to_bugflux__ notifier_object
  if respond_to?(:current_user) && current_user
    notifier_object.add_tab('User',
      {
        id: current_user.id,
        type: current_user.class.name,
        name: current_user.try(:name),
        email: current_user.try(:email)
      }
    )
  end
end