aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/template.rb
diff options
context:
space:
mode:
authorCarl Lerche & Yehuda Katz <wycats@gmail.com>2009-04-16 11:57:27 -0700
committerCarl Lerche & Yehuda Katz <wycats@gmail.com>2009-04-16 11:57:27 -0700
commitb49027e188466e55179f737906590a5feb8fea95 (patch)
tree2ac003c344da0dd90f59473940634c600b3a94c1 /actionpack/lib/action_view/template/template.rb
parent256b0ee8e3c1610967dfc89f864e24b98ed3c236 (diff)
downloadrails-b49027e188466e55179f737906590a5feb8fea95.tar.gz
rails-b49027e188466e55179f737906590a5feb8fea95.tar.bz2
rails-b49027e188466e55179f737906590a5feb8fea95.zip
Make more Template methods public to make ActionMailer tests pass
Diffstat (limited to 'actionpack/lib/action_view/template/template.rb')
-rw-r--r--actionpack/lib/action_view/template/template.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/action_view/template/template.rb b/actionpack/lib/action_view/template/template.rb
index fd9cbb494d..0d2f201458 100644
--- a/actionpack/lib/action_view/template/template.rb
+++ b/actionpack/lib/action_view/template/template.rb
@@ -95,6 +95,14 @@ module ActionView #:nodoc:
end
memoize :mime_type
+ def multipart?
+ format && format.include?('.')
+ end
+
+ def content_type
+ format.gsub('.', '/')
+ end
+
private
def format_and_extension
@@ -102,14 +110,6 @@ module ActionView #:nodoc:
end
memoize :format_and_extension
- def multipart?
- format && format.include?('.')
- end
-
- def content_type
- format.gsub('.', '/')
- end
-
def mtime
File.mtime(filename)
end