• S
    Rename `ActionView::Base#run` to `#_run` · 47fea39e
    Seb Jacobs 提交于
    There was a recent change by @tenderlove to Action view which introduced
    `ActionView::Base#run` [1].
    
    We ran into an issue with our application because one of the core
    concepts in our domain model is a `Run` which is exposed in most of our
    views as a helper method, which now conflicts with this new method.
    
    Although this is a public method it is not really meant to be part of
    the public API.
    
    In order to discourage public use of this method and to reduce the
    chances of this method conflicting with helper methods we can prefix
    this method with an underscore, renaming this method to `_run`.
    
    [1] https://github.com/rails/rails/commit/c740ebdaf5
    47fea39e
erubi.rb 2.4 KB