Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Silence warning: method redefined; discarding old filename

  • Loading branch information...
commit 2ccd4e790e0885a2c210f518e6ea3de542126746 1 parent 8820bb7
@brynary brynary authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/lib/action_view/template.rb
View
5 actionpack/lib/action_view/template.rb
@@ -64,7 +64,7 @@ def initialize(path)
def load!
return if @loaded
-
+
@paths = {}
templates_in_path do |template|
template.load!
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.