aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-06-04 11:31:55 +0100
committerGareth Rees <gareth@mysociety.org>2015-06-15 16:11:11 +0100
commit5f88e09872f4fc5138233d29323b587e06199a0b (patch)
tree745c8aab8ca9e506c07decee167b1cd5828592f5
parent4b76650a08ea564dafee6cd16e92986cb2fac49e (diff)
Explicitly define each callback
Just not worth using an Array. Prevents easily adding conditionals and reordering.
-rw-r--r--app/models/public_body.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 95bc10434..3a6dd58fb 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -68,8 +68,8 @@ class PublicBody < ActiveRecord::Base
validate :request_email_if_requestable
- before_save :set_api_key,
- :set_default_publication_scheme
+ before_save :set_api_key
+ before_save :set_default_publication_scheme
after_save :purge_in_cache
after_update :reindex_requested_from