Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed default ActiveRecord setting preventing generator from running.

  • Loading branch information...
commit a53363d9f63daaed2adc6e9ea9c12989feefe709 1 parent 7ab364c
@jgwmaxwell jgwmaxwell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/impressionist/engine.rb
View
2  lib/impressionist/engine.rb
@@ -5,7 +5,7 @@ module Impressionist
class Engine < Rails::Engine
initializer 'impressionist.model' do |app|
require "#{root}/app/models/impressionist/impressionable.rb"
- if Impressionist.orm == :active_record
+ if Impressionist.orm == :active_record && defined? ActiveRecord
require "impressionist/models/active_record/impression.rb"
require "impressionist/models/active_record/impressionist/impressionable.rb"
ActiveRecord::Base.send(:include, Impressionist::Impressionable)
Please sign in to comment.
Something went wrong with that request. Please try again.