Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only run generator if ActiveRecord is defined

  • Loading branch information...
commit 59c15448ff0e87ed5799f578a7e669ea2e429ea9 1 parent 855f1ba
@bkeepers bkeepers authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  generators/delayed_job/delayed_job_generator.rb
View
2  generators/delayed_job/delayed_job_generator.rb
@@ -4,7 +4,7 @@ class DelayedJobGenerator < Rails::Generator::Base
def manifest
record do |m|
m.template 'script', 'script/delayed_job', :chmod => 0755
- unless options[:skip_migration]
+ if !options[:skip_migration] && defined?(ActiveRecord)
m.migration_template "migration.rb", 'db/migrate',
:migration_file_name => "create_delayed_jobs"
end
Please sign in to comment.
Something went wrong with that request. Please try again.