Closed dkinzer closed 5 years ago
Hello @dkinzer, the documentation is correct. You are confusing the instance method with the class method.
@weppos, OK, but you might consider adding documentation with regards to this difference. As it can be very misleading to users.
I had one dev in my team waste a lot of time trying to get something to work as expected. Then I looked at the code and found out that both in the test case and in the code itself, the URL options are taken from :options
field inside of the options param (I guess just in the case of the class method, but still confusing because of current docs).
See:
The element options are taken from the :options field of the options hash passed into
add_breadcrumb
but the documentation seems to suggest otherwise.This commit updates the documentation to reflect the correct usage.