diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-19 15:52:33 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-19 15:52:33 -0800 |
commit | 1c74752500db94396b9af739489d34ec79fd819b (patch) | |
tree | 19c1d9a73a12e3ab19478177dd3179b4b108bd18 /actionview/lib/action_view/lookup_context.rb | |
parent | f42f1d3155cdb787f90f489d6042ef64be4e6e5f (diff) | |
download | rails-1c74752500db94396b9af739489d34ec79fd819b.tar.gz rails-1c74752500db94396b9af739489d34ec79fd819b.tar.bz2 rails-1c74752500db94396b9af739489d34ec79fd819b.zip |
Deprecate LookupContext#rendered_format
We no longer depend on `rendered_format` side effects, so we can remove
this method now. 🎉
Diffstat (limited to 'actionview/lib/action_view/lookup_context.rb')
-rw-r--r-- | actionview/lib/action_view/lookup_context.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/lib/action_view/lookup_context.rb b/actionview/lib/action_view/lookup_context.rb index 125ab4dbe3..10cd61bbd6 100644 --- a/actionview/lib/action_view/lookup_context.rb +++ b/actionview/lib/action_view/lookup_context.rb @@ -16,6 +16,8 @@ module ActionView # only once during the request, it speeds up all cache accesses. class LookupContext #:nodoc: attr_accessor :prefixes, :rendered_format + deprecate :rendered_format + deprecate :rendered_format= mattr_accessor :fallbacks, default: FallbackFileSystemResolver.instances @@ -250,7 +252,6 @@ module ActionView @digest_cache = nil @cache = true @prefixes = prefixes - @rendered_format = nil @details = initialize_details({}, details) @view_paths = build_view_paths(view_paths) |