diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-09-24 15:27:29 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-09-24 16:11:06 +0100 |
commit | 7b7f5dfa21f669b75552e946bedc598174fd71db (patch) | |
tree | ea516f6706b0dd4ec20d8f9673962f4d2f9cbbf6 | |
parent | 7ef4c953e106f620b1356550895f7ce197089332 (diff) |
fixup! Add display order to public body categories and headings
-rw-r--r-- | app/models/public_body_category.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body_category.rb b/app/models/public_body_category.rb index 2f2dca0bf..74b239463 100644 --- a/app/models/public_body_category.rb +++ b/app/models/public_body_category.rb @@ -124,7 +124,7 @@ class PublicBodyCategory < ActiveRecord::Base end def add_to_heading(heading) - if self.public_body_headings.include?(heading) + if public_body_headings.include?(heading) # we already have this, stop return end |