diff options
Diffstat (limited to 'perllib/FixMyStreet/Roles/Extra.pm')
-rw-r--r-- | perllib/FixMyStreet/Roles/Extra.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/Roles/Extra.pm b/perllib/FixMyStreet/Roles/Extra.pm index f815a3e9a..19fc91873 100644 --- a/perllib/FixMyStreet/Roles/Extra.pm +++ b/perllib/FixMyStreet/Roles/Extra.pm @@ -1,5 +1,5 @@ package FixMyStreet::Roles::Extra; -use Moose::Role; +use Moo::Role; =head1 NAME @@ -9,12 +9,9 @@ FixMyStreet::Roles::Extra - role for accessing {extra} field This is to applied to a DB class like Problem or Contacts that has a rich {extra} field: - use Moose; + use Moo; with 'FixMyStreet::Roles::Extra'; -(NB: there is actually a little more boilerplate, because DBIC doesn't actually -inherit from Moose, see ::Problem for an example.) - Then: $contact->set_extra_fields( |