File: | lib/Railsish/ControllerHelpers.pm |
Coverage: | 94.4% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Railsish::ControllerHelpers; | ||||||
2 | 8 8 8 | 70 23 89 | use strict; | ||||
3 | 8 8 8 | 79 27 86 | use warnings; | ||||
4 | |||||||
5 | 8 8 8 | 82 24 54 | use Exporter::Lite; | ||||
6 | our @EXPORT = qw(notice_stickie); | ||||||
7 | |||||||
8 | sub notice_stickie { | ||||||
9 | 1 | 0 | 6 | my ($text) = @_; | |||
10 | 1 | 5 | my $session = $Railsish::Controller::session; | ||||
11 | 1 1 | 3 12 | push @{$session->{notice_stickies}}, { text => $text }; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |