aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/active_model_helper.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-05-01 11:02:48 +0200
committerYves Senn <yves.senn@gmail.com>2015-05-01 11:02:56 +0200
commit14d0e0702651de4d825769bddd574aa5066e86f3 (patch)
tree934bb07ac5052a6ec4768fb489c1d5f285f00eeb /actionview/lib/action_view/helpers/active_model_helper.rb
parentd459b001b43d25053e7982e96eb8383538a6e358 (diff)
downloadrails-14d0e0702651de4d825769bddd574aa5066e86f3.tar.gz
rails-14d0e0702651de4d825769bddd574aa5066e86f3.tar.bz2
rails-14d0e0702651de4d825769bddd574aa5066e86f3.zip
Revert "Merge pull request #19844 from stevenspiel/link_to_if_block_helper_addition"
This reverts commit d459b001b43d25053e7982e96eb8383538a6e358, reversing changes made to 4d4950fae9e2a6970b5f1793aadc56a0b44e28a3. :sweat: The block is not supposed to be passed to `link_to`. It's used for a customized behavior of the `condtion = false` case. The docs illustrate that like so: ``` <%= link_to_if(@current_user.nil?, "Login", { controller: "sessions", action: "new" }) do link_to(@current_user.login, { controller: "accounts", action: "show", id: @current_user }) end %> ```
Diffstat (limited to 'actionview/lib/action_view/helpers/active_model_helper.rb')
0 files changed, 0 insertions, 0 deletions