File: Model.pm

package info (click to toggle)
libcatalyst-perl 5.90132-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,016 kB
  • sloc: perl: 11,061; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package TestApp::Model;
use Moose;
use namespace::clean -except => 'meta';

extends 'Catalyst::Model';

# Test a closure here, r10394 made this blow up when we clone the config down
# onto the subclass..
__PACKAGE__->config(
    escape_flags => {
        'js' => sub { ${ $_[0] } =~ s/\'/\\\'/g; },
    }
);

__PACKAGE__->meta->make_immutable;