diff options
author | James McKinney <james@slashpoundbang.com> | 2015-05-21 15:12:57 -0400 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2015-05-21 15:12:57 -0400 |
commit | b90a5f5df568dc68e971a7d43532b5163f6cd08e (patch) | |
tree | e23905770c2efff46f879ae4b569fbaca086e106 /app/models/incoming_message.rb | |
parent | dd289908964c8d60e33ce71724dc9e36c3beb765 (diff) |
Declare class methods the idiomatic Ruby way
Diffstat (limited to 'app/models/incoming_message.rb')
-rw-r--r-- | app/models/incoming_message.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 986eb19f5..dff516f0e 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -726,7 +726,7 @@ class IncomingMessage < ActiveRecord::Base end # Search all info requests for - def IncomingMessage.find_all_unknown_mime_types + def self.find_all_unknown_mime_types for incoming_message in IncomingMessage.find(:all) for attachment in incoming_message.get_attachments_for_display raise "internal error incoming_message " + incoming_message.id.to_s if attachment.content_type.nil? @@ -752,7 +752,7 @@ class IncomingMessage < ActiveRecord::Base return ret.keys.join(" ") end # Return space separated list of all file extensions known - def IncomingMessage.get_all_file_extensions + def self.get_all_file_extensions return AlaveteliFileTypes.all_extensions.join(" ") end end |