diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-15 05:27:51 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-15 05:27:51 +0100 |
commit | 9ca2c8f79ee3f1c4269df3ef7448e97cd2a9ea8f (patch) | |
tree | abaedaaaa23a335fbca87574cf675388a53b70dc | |
parent | 183641e8cb68b08367ad5b651ec42c122f1de6a1 (diff) |
It is not permissible to have more than one "translates" list
in an ActiveRecord model. (The second was being silently ignored.)
-rw-r--r-- | app/models/public_body.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 1a366db75..41bafa718 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -44,8 +44,7 @@ class PublicBody < ActiveRecord::Base has_tag_string - translates :name, :short_name, :request_email, :url_name, :notes - translates :first_letter, :publication_scheme + translates :name, :short_name, :request_email, :url_name, :notes, :first_letter, :publication_scheme # like find_by_url_name but also search historic url_name if none found def self.find_by_url_name_with_historic(name) |