Class: Middleman::Sitemap::Store
- Inherits:
-
Object
- Object
- Middleman::Sitemap::Store
- Defined in:
- lib/middleman/extensions/tumblargh.rb
Instance Method Summary collapse
- #find_resource_by_destination_path(request_path) ⇒ Object
- #orig_find_resource_by_destination_path ⇒ Object
Instance Method Details
#find_resource_by_destination_path(request_path) ⇒ Object
32 33 34 35 |
# File 'lib/middleman/extensions/tumblargh.rb', line 32 def find_resource_by_destination_path(request_path) request_path = "/index.html" if request_path.match(/^\/post\//) orig_find_resource_by_destination_path(request_path) end |
#orig_find_resource_by_destination_path ⇒ Object
30 |
# File 'lib/middleman/extensions/tumblargh.rb', line 30 alias_method :orig_find_resource_by_destination_path, :find_resource_by_destination_path |