mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
This patch probably belongs in AR discussing with rails team
This commit is contained in:
parent
737bb96737
commit
27edebfaef
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,15 @@
|
||||||
# perf fixes, review for each rails upgrade.
|
# 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
|
class ActionView::Helpers::AssetTagHelper::AssetIncludeTag
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue