Permalink
Browse files

work with or without delayed_job_active_record

  • Loading branch information...
1 parent d730f70 commit 5d4ba07e8a06037d0450e14faa5450616d9f05f8 @ethn ethn committed Sep 8, 2016
Showing with 3 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +2 −1 card/lib/cardio.rb
View
@@ -4,7 +4,7 @@ task :push_gems do
cd #{gem}
rm *.gem
gem build #{gem}.gemspec
- gem push -V #{gem}-#{version}.gem
+ gem push #{gem}-#{version}.gem
)
end
end
View
@@ -1,7 +1,8 @@
# -*- encoding : utf-8 -*-
require "active_support/core_ext/numeric/time"
-require "delayed_job_active_record"
+djar = "delayed_job_active_record"
+require djar if Gem::Specification::find_all_by_name(djar).any?
require "cardio/schema.rb"
ActiveSupport.on_load :card do

0 comments on commit 5d4ba07

Please sign in to comment.