Permalink
Browse files

fixed depricated method

  • Loading branch information...
1 parent f6a15a4 commit 35e4281931ab9904de4fcce44d316c85a8658644 @munya committed May 14, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 delayed_job_unique_key_active_record.gemspec
  2. +1 −1 lib/delayed/backend/active_record.rb
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = 'delayed_job_unique_key_active_record'
- s.version = '0.0.3'
+ s.version = '0.0.4'
s.authors = ["Matt Griffin", "Oleg Muntyan"]
s.summary = 'ActiveRecord backend for DelayedJobUniqueKey'
s.description = 'ActiveRecord backend for DelayedJobUniqueKey, originally authored by Tobias Luetke'
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.test_files = Dir.glob('spec/**/*')
s.add_runtime_dependency 'activerecord', '> 2.1.0'
- s.add_runtime_dependency 'delayed_job_unique_key', '0.0.3'
+ s.add_runtime_dependency 'delayed_job_unique_key', '0.0.4'
s.add_development_dependency 'rspec', '~> 2.0'
s.add_development_dependency 'rake', '~> 0.8'
@@ -7,7 +7,7 @@ module ActiveRecord
# Contains the work object as a YAML field.
class Job < ::ActiveRecord::Base
include Delayed::Backend::Base
- set_table_name :delayed_jobs
+ self.table_name :delayed_jobs
before_save :set_default_run_at
before_create :check_unique_key

0 comments on commit 35e4281

Please sign in to comment.