aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-25 16:42:45 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-25 16:42:45 -0800
commit0e13941dbe9c4840175e5c6f5b2c3f572249a4ec (patch)
tree39990d4819a4fba216b1ceb258fa61b0d649856d /actionview
parent3a8d5dac9aa82d9d775c04d70230a2e0b404e162 (diff)
downloadrails-0e13941dbe9c4840175e5c6f5b2c3f572249a4ec.tar.gz
rails-0e13941dbe9c4840175e5c6f5b2c3f572249a4ec.tar.bz2
rails-0e13941dbe9c4840175e5c6f5b2c3f572249a4ec.zip
`original_encoding` isn't used, so deprecate it and remove the ivar
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/file_template.rb4
-rw-r--r--actionview/lib/action_view/template.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/actionview/lib/action_view/file_template.rb b/actionview/lib/action_view/file_template.rb
index cdc077a01a..dea02176eb 100644
--- a/actionview/lib/action_view/file_template.rb
+++ b/actionview/lib/action_view/file_template.rb
@@ -22,11 +22,11 @@ module ActionView
# to ensure that references to the template object can be marshalled as well. This means forgoing
# the marshalling of the compiler mutex and instantiating that again on unmarshalling.
def marshal_dump # :nodoc:
- [ @identifier, @handler, @compiled, @original_encoding, @locals, @virtual_path, @updated_at, @format, @variant ]
+ [ @identifier, @handler, @compiled, @locals, @virtual_path, @updated_at, @format, @variant ]
end
def marshal_load(array) # :nodoc:
- @identifier, @handler, @compiled, @original_encoding, @locals, @virtual_path, @updated_at, @format, @variant = *array
+ @identifier, @handler, @compiled, @locals, @virtual_path, @updated_at, @format, @variant = *array
@compile_mutex = Mutex.new
end
end
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb
index 06d3de17b3..7f29dedd7c 100644
--- a/actionview/lib/action_view/template.rb
+++ b/actionview/lib/action_view/template.rb
@@ -140,7 +140,6 @@ module ActionView
@identifier = identifier
@handler = handler
@compiled = false
- @original_encoding = nil
@locals = locals
@virtual_path = virtual_path
@@ -156,6 +155,7 @@ module ActionView
@compile_mutex = Mutex.new
end
+ deprecate :original_encoding
deprecate def virtual_path=(_); end
deprecate def locals=(_); end
deprecate def formats=(_); end
@@ -266,11 +266,11 @@ module ActionView
# to ensure that references to the template object can be marshalled as well. This means forgoing
# the marshalling of the compiler mutex and instantiating that again on unmarshalling.
def marshal_dump # :nodoc:
- [ @source, @identifier, @handler, @compiled, @original_encoding, @locals, @virtual_path, @updated_at, @format, @variant ]
+ [ @source, @identifier, @handler, @compiled, @locals, @virtual_path, @updated_at, @format, @variant ]
end
def marshal_load(array) # :nodoc:
- @source, @identifier, @handler, @compiled, @original_encoding, @locals, @virtual_path, @updated_at, @format, @variant = *array
+ @source, @identifier, @handler, @compiled, @locals, @virtual_path, @updated_at, @format, @variant = *array
@compile_mutex = Mutex.new
end