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
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
..
api Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
metal Tighten up the AV::Base constructor 2019-01-29 15:49:40 -08:00
railties Fix call sites 2018-10-02 15:31:29 -04:00
api.rb ActionController::API *does* support cookies, sessions 2018-10-25 10:36:39 -05:00
base.rb Add quotes to code in rdoc comment in ActionController [ci skip] 2018-04-30 21:35:51 -04:00
caching.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
form_builder.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
log_subscriber.rb colorize the unpermitted params log message 2018-12-03 19:40:46 -05:00
metal.rb Remove code duplication for ActionController::Metal.action 2018-01-22 15:57:25 +02:00
railtie.rb [Action Pack] require => require_relative 2017-10-21 22:48:28 +09:00
renderer.rb Use native Array#append, Array#prepend, Hash#transform_keys, and Hash#transform_keys! 2018-12-20 23:22:46 +09:00
template_assertions.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
test_case.rb Update the promisse that ActionController::TestCase will be extracted 2019-01-17 16:08:09 -05:00