Skip to content

Commit

Permalink
Only run generator if ActiveRecord is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 26, 2010
1 parent 855f1ba commit 59c1544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/delayed_job/delayed_job_generator.rb
Expand Up @@ -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
Expand Down

0 comments on commit 59c1544

Please sign in to comment.