1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller/metal
Aaron Patterson e17fe52e0e
Tighten up the AV::Base constructor
The AV::Base constructor was too complicated, and this commit tightens
up the parameters it will take.  At runtime, AV::Base is most commonly
constructed here:

  94d54fa4ab/actionview/lib/action_view/rendering.rb (L72-L74)

This provides an AV::Renderer instance, a hash of assignments, and a
controller instance.  Since this is the common case for construction, we
should remove logic from the constructor that handles other cases.  This
commit introduces special constructors for those other cases.
Interestingly, most code paths that construct AV::Base "strangely" are
tests.
2019-01-29 15:49:40 -08:00
..
basic_implicit_render.rb Remove args from default_render 2019-01-17 14:33:14 -08:00
conditional_get.rb Use native Array#append, Array#prepend, Hash#transform_keys, and Hash#transform_keys! 2018-12-20 23:22:46 +09:00
content_security_policy.rb Always yield a CSP policy instance 2018-03-08 14:14:09 +00:00
cookies.rb
data_streaming.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
default_headers.rb Include default headers by default in API mode 2018-04-06 15:13:28 -04:00
etag_with_flash.rb
etag_with_template_digest.rb
exceptions.rb Typo fixes action pack. 2019-01-26 17:15:50 +05:30
flash.rb Ensure external redirects are explicitly allowed 2019-01-17 13:28:14 -05:00
force_ssl.rb Revert ensure external redirects are explicitly allowed 2019-01-22 11:40:13 -05:00
head.rb Merge pull request #28937 from maclover7/jm-fix-28927 2018-07-31 15:54:23 -04:00
helpers.rb Tighten up the AV::Base constructor 2019-01-29 15:49:40 -08:00
http_authentication.rb Import Action Mailbox 2018-12-25 21:32:35 -05:00
implicit_render.rb Remove args from default_render 2019-01-17 14:33:14 -08:00
instrumentation.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
live.rb We don't want these internal methods as public methods in our controllers 2018-10-30 10:23:26 +09:00
mime_responds.rb Document that format.any can match all formats 2019-01-16 11:13:48 +01:00
parameter_encoding.rb
params_wrapper.rb Capture parsing errors for ActionController::ParamsWrapper#process_action 2019-01-08 21:52:56 +00:00
redirecting.rb Revert ensure external redirects are explicitly allowed 2019-01-22 11:40:13 -05:00
renderers.rb Clarify intentions around method redefinitions 2017-09-01 14:27:13 +09:30
rendering.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
request_forgery_protection.rb Convert over the rest of the whitelist references 2018-08-24 16:10:17 -04:00
rescue.rb
streaming.rb [ci skip] update link 2017-12-15 10:15:04 +05:30
strong_parameters.rb Typo fixes action pack. 2019-01-26 17:15:50 +05:30
testing.rb Remove unused before_filters 2017-10-15 16:05:41 +09:00
url_for.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00