From 5eacc58df7ddda92fd65bf8f26ca34bd62b81793 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Tue, 4 Jan 2011 17:30:05 +0100 Subject: [PATCH] Not using inheritable namespace for rails 3 apps --- app/models/report.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/report.rb b/app/models/report.rb index fa9a88375d..fd6112dc94 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -1,7 +1,8 @@ require 'forwardable' class Report < ActiveRecord::Base - InheritedNamespace.activate + InheritedNamespace.activate unless defined? Rails && Rails.version =~ /^3./ + extend Forwardable include Enumerable #belongs_to :user