lib/ahnnotate/facet/models/module_node.rb in ahnnotate-0.2.0 vs lib/ahnnotate/facet/models/module_node.rb in ahnnotate-0.3.0
- old
+ new
@@ -115,9 +115,25 @@
return true
end
super
end
+
+ module ActiveRecord4Compatibility
+ class RelationDelegateClass
+ def initialize(*)
+ end
+ end
+
+ def relation_delegate_class(*)
+ RelationDelegateClass
+ end
+
+ def arel_table
+ end
+ end
+
+ include ActiveRecord4Compatibility
end
end
end
end