Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed regression problem with 'building forms naturally'.

  • Loading branch information...
commit 8b5cbc903a71bc66baa6594853894e66871e73c5 1 parent 7ffa7cb
@icydee icydee authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Lacuna/Role/Building/FormsNaturally.pm
View
4 lib/Lacuna/Role/Building/FormsNaturally.pm
@@ -4,8 +4,8 @@ use Moose::Role;
around can_build => sub {
my ($orig, $self, $body) = @_;
- if ($body->get_plan(__PACKAGE__, 1)) {
- return $orig->($self, $body);
+ if ($body->get_plan(ref $self, 1)) {
+ return $self->$orig($body);
}
confess [1013,"You can't build ".$self->name.". It forms naturally."];
};
Please sign in to comment.
Something went wrong with that request. Please try again.