diff --git a/lib/impressionist/engine.rb b/lib/impressionist/engine.rb index 0764e2b..cd754e9 100644 --- a/lib/impressionist/engine.rb +++ b/lib/impressionist/engine.rb @@ -4,7 +4,7 @@ require "rails" module Impressionist class Engine < Rails::Engine initializer 'impressionist.model' do |app| - require "../app/models/impressionist/impressionable.rb" + require "#{root}/app/models/impressionist/impressionable.rb" if Impressionist.orm == :active_record require "impressionist/models/active_record/impression.rb" require "impressionist/models/active_record/impressionist/impressionable.rb"