diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-02 21:38:58 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-02 21:38:58 -0500 |
commit | 3b3790a4351ba7c9d2711089c21f24fcedc11fc0 (patch) | |
tree | 5b51c79d8493bcbc42879933af1d3bbb8084f014 /actionpack/lib/action_view/template_file.rb | |
parent | 6c0edef26ee1c0e5f0964cae64c9f48da6daf1fa (diff) | |
download | rails-3b3790a4351ba7c9d2711089c21f24fcedc11fc0.tar.gz rails-3b3790a4351ba7c9d2711089c21f24fcedc11fc0.tar.bz2 rails-3b3790a4351ba7c9d2711089c21f24fcedc11fc0.zip |
Deprecate :use_full_path render option. The supplying the option no longer has an effect.
Diffstat (limited to 'actionpack/lib/action_view/template_file.rb')
-rw-r--r-- | actionpack/lib/action_view/template_file.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/template_file.rb b/actionpack/lib/action_view/template_file.rb index dd66482b3c..c38e8ed122 100644 --- a/actionpack/lib/action_view/template_file.rb +++ b/actionpack/lib/action_view/template_file.rb @@ -4,8 +4,8 @@ module ActionView #:nodoc: # from the load path root e.g. "hello/index.html.erb" not # "app/views/hello/index.html.erb" class TemplateFile - def self.from_path(path, use_full_path = false) - path.is_a?(self) ? path : new(path, use_full_path) + def self.from_path(path) + path.is_a?(self) ? path : new(path) end def self.from_full_path(load_path, full_path) @@ -17,11 +17,11 @@ module ActionView #:nodoc: attr_accessor :load_path, :base_path, :name, :format, :extension delegate :to_s, :inspect, :to => :path - def initialize(path, use_full_path = false) + def initialize(path) path = path.dup - # Clear the forward slash in the beginning unless using full path - trim_forward_slash!(path) unless use_full_path + # Clear the forward slash in the beginning + trim_forward_slash!(path) @base_path, @name, @format, @extension = split(path) end |