Skip to content

Commit

Permalink
Merge commit 'brynary/2-3-stable' into 2-3-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Nov 9, 2009
2 parents fd0289f + b68861a commit 97a7cdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def self.cache_template_loading?

attr_internal :request

delegate :request_forgery_protection_token, :template, :params, :session, :cookies, :response, :headers,
delegate :request_forgery_protection_token, :params, :session, :cookies, :response, :headers,
:flash, :logger, :action_name, :controller_name, :to => :controller

module CompiledTemplates #:nodoc:
Expand Down
1 change: 1 addition & 0 deletions actionpack/lib/action_view/erb/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def html_escape(s)
s.to_s.gsub(/[&"><]/) { |special| HTML_ESCAPE[special] }
end

undef :h
alias h html_escape

module_function :html_escape
Expand Down
5 changes: 3 additions & 2 deletions actionpack/lib/action_view/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def initialize(path)

def load!
return if @loaded

@paths = {}
templates_in_path do |template|
template.load!
Expand Down Expand Up @@ -108,8 +108,9 @@ def self.exempt_from_layout(*extensions)
@@exempt_from_layout.merge(regexps)
end

attr_accessor :template_path, :filename, :load_path, :base_path
attr_accessor :template_path, :load_path, :base_path
attr_accessor :locale, :name, :format, :extension
attr_writer :filename
delegate :to_s, :to => :path

def initialize(template_path, load_path = nil)
Expand Down

0 comments on commit 97a7cdc

Please sign in to comment.