aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/comment_controller_spec.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-03-11 14:35:32 +0000
committerGareth Rees <gareth@mysociety.org>2014-03-13 11:48:43 +0000
commit68a9536dc68f35965156aeb84c9f4c5bee391159 (patch)
tree6e4fd5041f5dd47db4ab7f55dc0b6794dbe20109 /spec/controllers/comment_controller_spec.rb
parentec925323afce0e2f2c3dbca0b3a1efb054d468e6 (diff)
Use filter to reject unless comments allowed
Extract checking whether comments are allowed on an InfoRequest to a filter in CommentController. Removes responsibility from the #new method.
Diffstat (limited to 'spec/controllers/comment_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions