diff options
author | rafl <rafl@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-18 20:43:33 +0000 |
---|---|---|
committer | rafl <rafl@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-18 20:43:33 +0000 |
commit | 062c926abc8c74573a1474a0cf1789242d0e959a (patch) | |
tree | 8c7a09ec33663958b491c06d57648ec5567942a6 /lib/Reaction/UI/ViewPort/SiteLayout.pm | |
parent | 96f6fa4cb9ab170c12564a8b25d4591a2133e571 (diff) | |
download | reaction-062c926abc8c74573a1474a0cf1789242d0e959a.tar.gz reaction-062c926abc8c74573a1474a0cf1789242d0e959a.zip |
Revert "coerce VP::SiteLayouts static_base_uri from URI."
This reverts commit ffbdd3b7365b23f9498eb0c773a1c4bb8cd1b6a6.
Diffstat (limited to 'lib/Reaction/UI/ViewPort/SiteLayout.pm')
-rw-r--r-- | lib/Reaction/UI/ViewPort/SiteLayout.pm | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/Reaction/UI/ViewPort/SiteLayout.pm b/lib/Reaction/UI/ViewPort/SiteLayout.pm index 15c637c..2c53f8b 100644 --- a/lib/Reaction/UI/ViewPort/SiteLayout.pm +++ b/lib/Reaction/UI/ViewPort/SiteLayout.pm @@ -6,23 +6,12 @@ use aliased 'Reaction::UI::ViewPort'; use namespace::clean -except => [ qw(meta) ]; extends ViewPort; -{ - use Moose::Util::TypeConstraints qw/subtype where coerce from via/; - my $str_type = subtype 'Str' => where { 1 }; - my $uri_type = subtype 'Object' => where { $_->isa('URI') }; - - coerce $str_type - => from $uri_type - => via { "$_[0]" }; - - has 'static_base_uri' => (isa => $str_type, coerce => 1, is => 'rw', lazy_fail => 1); - - no Moose::Util::TypeConstraints; -} has 'title' => (isa => 'Str', is => 'rw', lazy_fail => 1); +has 'static_base_uri' => (isa => 'Str', is => 'rw', lazy_fail => 1); + has 'meta_info' => ( is => 'rw', isa => 'HashRef', required => '1', default => sub { {} } |