1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/rails_guides
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
..
markdown Wrap custom id of a header attribute into \" in rails guides 2018-10-05 00:57:32 +03:00
generator.rb Tighten up the AV::Base constructor 2019-01-29 15:49:40 -08:00
helpers.rb Cleanup credits related code as it is removed now in PR #32429 2018-04-03 15:19:57 +05:30
indexer.rb Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00
kindle.rb Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
levenshtein.rb Enable Style/ParenthesesAroundCondition cop 2018-08-19 08:16:21 +09:00
markdown.rb Add OG tags to layout.html.erb 2019-01-09 13:23:22 +09:00