diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-04-12 01:35:44 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-04-12 01:35:44 +0530 |
commit | dbb2c2c7b5255eee75868835b0ebd2c36f6ff0cd (patch) | |
tree | 5ad3e51316e9511c8b89cf3dc596d29d325a8ee2 /actionview/lib | |
parent | b5f99550de2c41a8c6cc3152a403a91ef292ac20 (diff) | |
parent | 8e092f2b72fb6d42971d03699aae823649ae921d (diff) | |
download | rails-dbb2c2c7b5255eee75868835b0ebd2c36f6ff0cd.tar.gz rails-dbb2c2c7b5255eee75868835b0ebd2c36f6ff0cd.tar.bz2 rails-dbb2c2c7b5255eee75868835b0ebd2c36f6ff0cd.zip |
Merge pull request #24508 from alexmirk/master
Improved ActionView flows.rb documention [ci skip]
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/flows.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/actionview/lib/action_view/flows.rb b/actionview/lib/action_view/flows.rb index bc61920848..4b912f0b2b 100644 --- a/actionview/lib/action_view/flows.rb +++ b/actionview/lib/action_view/flows.rb @@ -37,9 +37,8 @@ module ActionView end # Try to get stored content. If the content - # is not available and we are inside the layout - # fiber, we set that we are waiting for the given - # key and yield. + # is not available and we're inside the layout fiber, + # then it will begin waiting for the given key and yield. def get(key) return super if @content.key?(key) @@ -60,8 +59,8 @@ module ActionView end # Appends the contents for the given key. This is called - # by provides and resumes back to the fiber if it is - # the key it is waiting for. + # by providing and resuming back to the fiber, + # if that's the key it's waiting for. def append!(key, value) super @fiber.resume if @waiting_for == key |