Jifty::Action::AboutMe - Give information about the current user


Jifty documentation Contained in the Jifty distribution.

Index


Code Index:

NAME

Top

Jifty::Action::AboutMe - Give information about the current user

DESCRIPTION

Top

This action is used for external consumers of Jifty's various APIs to get information about the current user.

take_action

Does nothing except set the results to the Jifty::CurrentUser object.

SEE ALSO

Top

Jifty::Action, Jifty::CurrentUser

LICENSE

Top

Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.


Jifty documentation Contained in the Jifty distribution.
use warnings;
use strict;

package Jifty::Action::AboutMe;
use base qw/Jifty::Action/;

sub take_action {
    my $self = shift;

    $self->result->content(current_user => $self->current_user);

    return 1;
}

1;