aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-06-03 17:14:33 +0100
committerGareth Rees <gareth@mysociety.org>2015-06-15 16:11:11 +0100
commit4b76650a08ea564dafee6cd16e92986cb2fac49e (patch)
tree5544c19c595168ea9a3caa92ed00945ba6cf6ec5
parent5d4e5f55ddfc274da87a4c5d0d7f19f3276e3e88 (diff)
Tidy alignments
-rw-r--r--app/models/public_body.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index aa612cbf7..95bc10434 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -82,13 +82,15 @@ class PublicBody < ActiveRecord::Base
}
acts_as_versioned
- acts_as_xapian :texts => [ :name, :short_name, :notes ],
- :values => [
- [ :created_at_numeric, 1, "created_at", :number ] # for sorting
- ],
- :terms => [ [ :variety, 'V', "variety" ],
- [ :tag_array_for_search, 'U', "tag" ]
- ]
+ acts_as_xapian :texts => [:name, :short_name, :notes],
+ :values => [
+ # for sorting
+ [:created_at_numeric, 1, "created_at", :number]
+ ],
+ :terms => [
+ [:variety, 'V', "variety"],
+ [:tag_array_for_search, 'U', "tag"]
+ ]
has_tag_string
strip_attributes!
translates :name, :short_name, :request_email, :url_name, :notes, :first_letter, :publication_scheme