return $self->_actions;
}
+sub render {
+ my ($self, $controller) = @_;
+ return $controller->render(\$self->to_json, { type => 'json' });
+}
+
1;
__END__
Returns the actions gathered so far as a JSON string ready to be sent
to the client.
+=item C<render $controller>
+
+Renders C<$self> via the controller. Useful for chaining. Equivalent
+to the following:
+
+ $controller->render(\$self->to_json, { type => 'json' });
+
=back
=head1 FUNCTIONS EVALUATED ON THE CLIENT SIDE