Method: MiddlemanMdocs::Controller#with_ensure_resource
- Defined in:
- lib/middleman-mdocs/controller.rb
#with_ensure_resource ⇒ Object
138 139 140 141 142 143 144 145 |
# File 'lib/middleman-mdocs/controller.rb', line 138 def with_ensure_resource guard_recursive('with_ensure_resource', 'none', nil) do sitemap.instance_variable_get('@lock').synchronize do sitemap.ensure_resource_list_updated! yield end end end |