From b01e40d7b5da25ff44e5f2fc745653469f5c2ec5 Mon Sep 17 00:00:00 2001 From: John McAliley Date: Thu, 15 Mar 2012 13:16:15 -0400 Subject: [PATCH] use the engine root instead of relative path. the path was not found --- lib/impressionist/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"