use the engine root instead of relative path. the path was not found

This commit is contained in:
John McAliley 2012-03-15 13:16:15 -04:00
parent f15cf55248
commit b01e40d7b5
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ require "rails"
module Impressionist module Impressionist
class Engine < Rails::Engine class Engine < Rails::Engine
initializer 'impressionist.model' do |app| initializer 'impressionist.model' do |app|
require "../app/models/impressionist/impressionable.rb" require "#{root}/app/models/impressionist/impressionable.rb"
if Impressionist.orm == :active_record if Impressionist.orm == :active_record
require "impressionist/models/active_record/impression.rb" require "impressionist/models/active_record/impression.rb"
require "impressionist/models/active_record/impressionist/impressionable.rb" require "impressionist/models/active_record/impressionist/impressionable.rb"