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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{background_fu}
3
- s.version = "1.0.9"
3
+ s.version = "1.0.9.1"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genki-background_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacek Becela