diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-03-21 22:31:26 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-03-22 20:03:26 +0000 |
commit | 4db84e2b69378d6e26daa6ba460437d2e2c0d498 (patch) | |
tree | 280d21be891ebd1387f863a001a9f18029f6e921 | |
parent | faea7f9fb09b27b7a6bdb09b5023c736da957230 (diff) |
Add no-op sending method.
This simply always skips reports for this body, in case you need
to suspend reports there. Fixes #507.
-rw-r--r-- | perllib/FixMyStreet/SendReport/Noop.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport/Noop.pm b/perllib/FixMyStreet/SendReport/Noop.pm new file mode 100644 index 000000000..f2e0a3bdb --- /dev/null +++ b/perllib/FixMyStreet/SendReport/Noop.pm @@ -0,0 +1,12 @@ +package FixMyStreet::SendReport::Noop; + +use Moose; + +BEGIN { extends 'FixMyStreet::SendReport'; } + +# Always skip when using this method +sub should_skip { + return 1; +} + +1; |