You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
several methods, including format were changed to private from protected. Because of that they are no longer accessible in subclasses callable with receiver and cause troubles in other gems/generators that inherit from ERB
Aww, thank you for reporting this.
It's not really related to subclassing (note that protected in Ruby is different from that in Java). The essential problem lies in self.format call here.
Here's a shorter code that reproducing the problem.
classAprivatedefx():x;enddeffoo(x=self.x)pxendendA.new.foo#=> 28275.rb:4:in `foo': private method `x' called for #<A:0x007f9673944858> (NoMethodError)
In this commit:
several methods, including
format
were changed toprivate
fromprotected
. Because of that they are no longeraccessible in subclassescallable with receiver and cause troubles in other gems/generators that inherit from ERBSee: slim-template/slim-rails#139
The text was updated successfully, but these errors were encountered: