summaryrefslogtreecommitdiffstats
path: root/lib/Bread/Board/Declare.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-10-10 19:19:22 -0500
committerJesse Luehrs <doy@tozt.net>2011-10-10 19:19:22 -0500
commit86476983d21b7830a4f974f277e91b748542669a (patch)
treecf19e4805055b13c7451e82e7b6a95655a4a413a /lib/Bread/Board/Declare.pm
parentb2118130f3b95818f332816eaf97b9349e881146 (diff)
downloadbread-board-declare-86476983d21b7830a4f974f277e91b748542669a.tar.gz
bread-board-declare-86476983d21b7830a4f974f277e91b748542669a.zip
tired of testing this with old moose versions
Diffstat (limited to 'lib/Bread/Board/Declare.pm')
-rw-r--r--lib/Bread/Board/Declare.pm20
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/Bread/Board/Declare.pm b/lib/Bread/Board/Declare.pm
index c0b35af..6157be2 100644
--- a/lib/Bread/Board/Declare.pm
+++ b/lib/Bread/Board/Declare.pm
@@ -107,17 +107,6 @@ they are explicitly disabled. In addition, multiple inheritance would just
cause a lot of problems, so it is also disabled (although single inheritance
and role application works properly).
-NOTE: When using this module in roles with Moose versions prior to 2.0, the
-attribute trait will need to be applied explicitly to attributes that should
-become services, as in:
-
- has attr => (
- traits => ['Service'],
- is => 'ro',
- isa => 'Str',
- value => 'value',
- )
-
=cut
my (undef, undef, $init_meta) = Moose::Exporter->build_import_methods(
@@ -128,12 +117,9 @@ my (undef, undef, $init_meta) = Moose::Exporter->build_import_methods(
class => ['Bread::Board::Declare::Meta::Role::Class'],
instance => ['Bread::Board::Declare::Meta::Role::Instance'],
},
- (Moose->VERSION >= 1.9900
- ? (role_metaroles => {
- applied_attribute =>
- ['Bread::Board::Declare::Meta::Role::Attribute'],
- })
- : ()),
+ role_metaroles => {
+ applied_attribute => ['Bread::Board::Declare::Meta::Role::Attribute'],
+ },
base_class_roles => ['Bread::Board::Declare::Role::Object'],
);