discourse/lib/freedom_patches/performance_fixes.rb

12 lines
155 B
Ruby
Raw Normal View History

# perf fixes, review for each rails upgrade.
# we call this a lot
class ActiveRecord::Base
def present?
true
end
def blank?
false
end
end