aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-09-24 15:27:29 +0100
committerLouise Crow <louise.crow@gmail.com>2014-09-24 16:11:06 +0100
commit7b7f5dfa21f669b75552e946bedc598174fd71db (patch)
treeea516f6706b0dd4ec20d8f9673962f4d2f9cbbf6
parent7ef4c953e106f620b1356550895f7ce197089332 (diff)
fixup! Add display order to public body categories and headings
-rw-r--r--app/models/public_body_category.rb2
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