From a213c4829ab0d87b2a7a74df0e35513c6ea6bdea Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 25 Feb 2019 12:03:45 -0800 Subject: remove the formats writer on templates --- actionview/lib/action_view/template.rb | 8 ++++++-- 1 file 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? -- cgit v1.2.3