projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9b2f405
)
tweak add_domain_model to default attribute metaclass rather than forcibly construct...
matthewt [Fri, 25 Jan 2008 04:25:47 +0000 (
04:25
+0000)]
lib/Reaction/Meta/InterfaceModel/Object/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Reaction/Meta/InterfaceModel/Object/Class.pm
b/lib/Reaction/Meta/InterfaceModel/Object/Class.pm
index
77fbbe4
..
da99ffe
100644
(file)
--- a/
lib/Reaction/Meta/InterfaceModel/Object/Class.pm
+++ b/
lib/Reaction/Meta/InterfaceModel/Object/Class.pm
@@
-16,7
+16,8
@@
class Class is 'Reaction::Meta::Class', which {
implements add_domain_model => as{
my $self = shift;
- $self->add_attribute( DomainModelAttribute->new(@_) );
+ my $name = shift;
+ $self->add_attribute($name, metaclass => DomainModelAttribute, @_);
};
implements parameter_attributes => as {