From 27edebfaefc8899af789511a40a04bf401c1d07e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 24 Apr 2013 14:40:55 +1000 Subject: [PATCH] This patch probably belongs in AR discussing with rails team --- lib/freedom_patches/performance_fixes.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/freedom_patches/performance_fixes.rb b/lib/freedom_patches/performance_fixes.rb index 62e7495bd8a..74d0e2e06c5 100644 --- a/lib/freedom_patches/performance_fixes.rb +++ b/lib/freedom_patches/performance_fixes.rb @@ -1,5 +1,15 @@ # perf fixes, review for each rails upgrade. +# we call this a lot +class ActiveRecord::Base + def present? + true + end + def blank? + false + end +end + class ActionView::Helpers::AssetTagHelper::AssetIncludeTag private