This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language_code | name | |
---|---|---|
af | Afrikaans | |
am | Amharic | |
ar | Arabic | |
arq | Algerian Arabic | |
art-x-bork | Swedish Chef | |
as | Assamese | |
ast | Asturian | |
az | Azerbaijani | |
be | Belarusian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Update < ActiveRecord::Base | |
belongs_to :job_id, :foreign_key => 'job_id', :class_name => 'Job' | |
file_column :attachment | |
def authorized_for_destroy? | |
return false if new_record? | |
return Update.count(:conditions => ["created_at > ?", self.created_at]) == 0 | |
end | |