Permalink
Browse files

cleanup

  • Loading branch information...
1 parent a7747e2 commit e863a21b0a2a4f044b34a60ef57156205e60ecae @typester committed Oct 12, 2010
Showing with 3 additions and 17 deletions.
  1. +1 −6 lib/Ark/Models.pm
  2. +2 −11 lib/Ark/Request.pm
View
@@ -1,12 +1,7 @@
package Ark::Models;
use Any::Moose;
-BEGIN {
- if (any_moose eq 'Mouse') {
- eval q[use MouseX::Foreign; 1]
- or die $@;
- }
-}
+BEGIN { do { eval q[use MouseX::Foreign; 1] or die $@ } if any_moose eq 'Mouse' }
extends any_moose('::Object'), 'Object::Container';
View
@@ -1,18 +1,9 @@
package Ark::Request;
use Any::Moose;
-BEGIN {
- if (any_moose eq 'Mouse') {
- eval q[use MouseX::Foreign; 1]
- or die $@;
- }
- else {
- eval q[use MooseX::NonMoose; 1]
- or die $@;
- }
-}
+BEGIN { do { eval q[use MouseX::Foreign; 1] or die $@ } if any_moose eq 'Mouse' }
-extends 'Plack::Request';
+extends any_moose('::Object'), 'Plack::Request';
use URI::WithBase;
use Path::AttrRouter::Match;

0 comments on commit e863a21

Please sign in to comment.