PDF: comment out memoizes (#61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5255 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dc82df16a8
commit
a184b21a99
@ -2,7 +2,7 @@ module RFPDF
|
|||||||
module TemplateHandler
|
module TemplateHandler
|
||||||
|
|
||||||
class CompileSupport
|
class CompileSupport
|
||||||
extend ActiveSupport::Memoizable
|
# extend ActiveSupport::Memoizable
|
||||||
|
|
||||||
attr_reader :options
|
attr_reader :options
|
||||||
|
|
||||||
@ -27,14 +27,14 @@ module RFPDF
|
|||||||
def ie_request?
|
def ie_request?
|
||||||
@controller.request.env['HTTP_USER_AGENT'] =~ /msie/i
|
@controller.request.env['HTTP_USER_AGENT'] =~ /msie/i
|
||||||
end
|
end
|
||||||
memoize :ie_request?
|
# memoize :ie_request?
|
||||||
|
|
||||||
# added to make ie happy with ssl pdf's (per naisayer)
|
# added to make ie happy with ssl pdf's (per naisayer)
|
||||||
def ssl_request?
|
def ssl_request?
|
||||||
# @controller.request.env['SERVER_PROTOCOL'].downcase == "https"
|
# @controller.request.env['SERVER_PROTOCOL'].downcase == "https"
|
||||||
@controller.request.ssl?
|
@controller.request.ssl?
|
||||||
end
|
end
|
||||||
memoize :ssl_request?
|
# memoize :ssl_request?
|
||||||
|
|
||||||
# TODO: kept around from railspdf-- maybe not needed anymore? should check.
|
# TODO: kept around from railspdf-- maybe not needed anymore? should check.
|
||||||
def set_pragma
|
def set_pragma
|
||||||
|
Loading…
x
Reference in New Issue
Block a user