1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove with_layout_format delegation

That method doesn't exist on LookupContext, so the delegate doesn't make
sense.
This commit is contained in:
Aaron Patterson 2019-01-28 15:09:13 -08:00
parent bf9b7325f8
commit 736db1586e
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -17,7 +17,7 @@ module ActionView
# that new object is called in turn. This abstracts the setup and rendering
# into a separate classes for partials and templates.
class AbstractRenderer #:nodoc:
delegate :template_exists?, :any_templates?, :with_layout_format, :formats, to: :@lookup_context
delegate :template_exists?, :any_templates?, :formats, to: :@lookup_context
def initialize(lookup_context)
@lookup_context = lookup_context