genki-background_fu 1.0.9 → 1.0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/background-fu.gemspec +1 -1
- data/lib/job.rb +2 -1
- data/rails/init.rb +2 -1
- metadata +1 -1
    
        data/background-fu.gemspec
    CHANGED
    
    
    
        data/lib/job.rb
    CHANGED
    
    | @@ -96,7 +96,8 @@ class Job < ActiveRecord::Base | |
| 96 96 | 
             
                  end
         | 
| 97 97 |  | 
| 98 98 | 
             
                  # Job.running => array of running jobs, etc.
         | 
| 99 | 
            -
                  self.class.send!(:define_method, state_name) do
         | 
| 99 | 
            +
                  #self.class.send!(:define_method, state_name) do
         | 
| 100 | 
            +
                  self.class.send(:define_method, state_name) do
         | 
| 100 101 | 
             
                    find_all_by_state(state_name, :order => "id desc")
         | 
| 101 102 | 
             
                  end
         | 
| 102 103 | 
             
                end
         | 
    
        data/rails/init.rb
    CHANGED
    
    | @@ -6,5 +6,6 @@ require 'job/bonus_features' | |
| 6 6 | 
             
            ActiveSupport::Dependencies.load_paths << "#{RAILS_ROOT}/lib/workers"
         | 
| 7 7 |  | 
| 8 8 | 
             
            if ActiveRecord::Base.method_defined?(:allow_concurrency) and ActiveRecord::Base.allow_concurrency
         | 
| 9 | 
            -
              Job.send!(:include, Job::BonusFeatures)
         | 
| 9 | 
            +
              #Job.send!(:include, Job::BonusFeatures)
         | 
| 10 | 
            +
              Job.send(:include, Job::BonusFeatures)
         | 
| 10 11 | 
             
            end
         |