aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-25 12:03:45 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-25 12:26:30 -0800
commita213c4829ab0d87b2a7a74df0e35513c6ea6bdea (patch)
tree5271378b5c713707d231812b91ee96868e3c512d /actionview
parentbc74959aad2073b294f537b0e928e0bbc23abfea (diff)
downloadrails-a213c4829ab0d87b2a7a74df0e35513c6ea6bdea.tar.gz
rails-a213c4829ab0d87b2a7a74df0e35513c6ea6bdea.tar.bz2
rails-a213c4829ab0d87b2a7a74df0e35513c6ea6bdea.zip
remove the formats writer on templates
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/template.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb
index ffc3a7362e..8b1c3199d2 100644
--- a/actionview/lib/action_view/template.rb
+++ b/actionview/lib/action_view/template.rb
@@ -122,11 +122,11 @@ module ActionView
extend Template::Handlers
- attr_accessor :locals, :formats, :variants, :virtual_path
+ attr_accessor :locals, :variants, :virtual_path
attr_reader :source, :identifier, :handler, :original_encoding, :updated_at
- attr_reader :variable
+ attr_reader :variable, :formats
def initialize(source, identifier, handler, format: nil, **details)
unless format
@@ -154,6 +154,10 @@ module ActionView
@compile_mutex = Mutex.new
end
+ def formats=
+ end
+ deprecate :formats=
+
# Returns whether the underlying handler supports streaming. If so,
# a streaming buffer *may* be passed when it starts rendering.
def supports_streaming?