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
    
  
  
    
  | require 'singleton' | |
| class News | |
| include Singleton | |
| # should act as though it has_one :blog | |
| NEWS_BLOG_ID = 10 | |
| def blog | |
| Blog.find(NEWS_BLOG_ID) | |
| end | 
  
    
      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 Answer < ActiveRecord::Base | |
| stream_to :company | |
| end | 
  
    
      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
    
  
  
    
  | require "#{Rails.root}/vendor/gems/cubeless_base-0.0.4/lib/batch_mailer" | |
| require "#{Rails.root}/app/models/notifier" | |
| # SSJ 11/16/2010 | |
| # | |
| # when using in consule do: require 'spec/mailer_send_helper' | |
| # these methods are not in cubeless, but help in testing ... | |
| class BatchMailer | |
| def self.send_batch_mail(tmail) | |
| users = ["scott.johnson@sabre.com"] | |
| # here(tmail.charset) | 
  
    
      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 Task < ActiveRecord::Base | |
| belongs_to :user | |
| belongs_to :location | |
| belongs_to :customer | |
| belongs_to :task_code | |
| validates_presence_of :location_id | |
| validates_presence_of :customer_id | |
| validates_presence_of :job_number | |
| # validates_format_of :job_number, :with => /^[5-9][0-9]{5,100}/ | 
NewerOlder