]> cat aescling's git repositories - mastodon.git/commit
TIL a return from a block seems to return from the whole method rather than
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 18 Mar 2016 23:23:46 +0000 (00:23 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 18 Mar 2016 23:23:46 +0000 (00:23 +0100)
commit47d1cb4e2183949e50488187a74e3ce9b3d7d3b8
tree6d660545ccfb82b067b42a86fe9155a42b0ab1ee
parent071f64d317408b556c4f85e2f2abd80fe815de8b
TIL a return from a block seems to return from the whole method rather than
the block, even though the last line of a block is an implicit return. I am
confused to say the least
app/helpers/application_helper.rb