aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ask the view for its method containerAaron Patterson2019-01-181-0/+4
| | | | | | Rather than doing is_a? checks, ask the view object for its compiled method container. This gives us the power to replace the method container depending on the instance of the view.
* Directly include "CompiledTemplates" moduleAaron Patterson2019-01-181-0/+6
| | | | | We always want to include this module. It'll be used in production (maybe)
* Pull up virtual path assignmentAaron Patterson2019-01-161-2/+2
|
* Pull buffer assignment upAaron Patterson2019-01-161-0/+1
| | | | | Since everything goes through a `run` method, we can pull the buffer assignment up.
* Always evaluate views against an ActionView::BaseAaron Patterson2019-01-161-0/+7
| | | | | Methods created by views should always be evaluated against an AV::Base instance. This way we can extract and refactor things in to classes.
* [Action View] require_relative => requireAkira Matsuda2017-10-211-5/+5
| | | | This basically reverts c4d1a4efeec6f0b5b58222993aa0bec85a19b6a8
* Use frozen string literal in actionview/Kir Shatrov2017-07-241-0/+2
|
* [Action View] require => require_relativeAkira Matsuda2017-07-011-5/+5
|
* Use a hash to record every partial's cache hit status instead of sharing a ↵Stan Lo2017-06-081-0/+1
| | | | boolean.
* Use mattr_accessor default: option throughout the projectGenadi Samokovarov2017-06-031-10/+5
|
* Change ActionView ERB Handler from Erubis to ErubiJeremy Evans2017-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Erubi offers the following advantages for Rails: * Works with ruby's --enable-frozen-string-literal option * Has 88% smaller memory footprint * Does no freedom patching (Erubis adds a method to Kernel) * Has simpler internals (1 file, <150 lines of code) * Has an open development model (Erubis doesn't have a public source control repository or bug tracker) * Is not dead (Erubis hasn't been updated since 2011) Erubi is a simplified fork of Erubis that contains just the parts that are generally needed (which includes the parts that Rails uses). The only intentional difference in behavior is that it does not include support for <%=== tags for debug output. That could be added to the ActionView ERB handler if it is desired. The Erubis template handler remains in a deprecated state so that code that accesses it directly does not break. It can be removed after Rails 5.1.
* Add three new rubocop rulesRafael Mendonça França2016-08-161-1/+1
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* modernizes hash syntax in actionviewXavier Noria2016-08-061-3/+3
|
* applies new string literal convention in actionview/libXavier Noria2016-08-061-9/+9
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* [ci skip] Update formatting in ActionView::Base documentationAlex Kitchens2016-06-291-6/+6
|
* Fix usage of word alternatively in docs [ci skip]Abhishek Jain2015-10-061-1/+1
|
* Make disable_with default in submit_tagJustin Schiff2015-08-111-0/+4
| | | | | | | | | | | | | | Prevents double submission by making disable_with the default. Default disable_with option will only be applied if user has not specified her/his own disable_with option, whether that is in the `data-disable-with` string form or the `:data => { :disable_with => "Saving..." }` hash form. disable_with will default to the value attribute. A configuration option was added to opt out of this functionality if the user so desires. `config.action_view.automatically_disable_submit_tag = false`
* Add documentation for local_assigns [ci skip]Nithin Bekal2015-02-171-0/+8
|
* Fix link in documentation. [ci skip]Igor Zubkov2014-11-301-2/+2
|
* Explain ERB space removal. [ci skip]Ciro Santilli2014-09-111-1/+3
|
* Shorten ActionView::Base doc summary line. [ci skip]Ciro Santilli2014-09-021-3/+4
|
* Clarify Rails uses erubis not stdlin ERB. [ci skip]Ciro Santilli2014-09-021-1/+2
|
* defined? should actually work in current implementationAkira Matsuda2014-08-071-9/+0
| | | | So this trick is not needed to be documented anymore.
* Builder source code is still available on github [ci skip]Zachary Scott2014-06-131-0/+3
| | | | This was also removed from #15542
* remove rubyforge.org that was shut down [ci skip]Gaurav Sharma2014-06-061-2/+0
|
* Rails config for raise on missing translationsKassio Borges2014-01-271-0/+4
| | | | | Add a config to setup whether raise exception for missing translation or not.
* Remove deprecated cattr_* requiresGenadi Samokovarov2013-12-031-1/+1
|
* Add missing requires inside AVŁukasz Strzałkowski2013-08-251-0/+4
|
* Move actionpack/lib/action_view* into actionview/libPiotr Sarnacki2013-06-201-0/+201