Method: Bcms::WebDAV::Resource#find_section_for

Defined in:
lib/bcms_webdav/resource.rb

#find_section_for(path) ⇒ Object



178
179
180
181
182
183
# File 'lib/bcms_webdav/resource.rb', line 178

def find_section_for(path)
  path_obj = Path.new(path)
  section_path = path_obj.path_without_filename
  path_to_find = Resource.normalize_path(section_path)
  Cms::Section.with_path(path_to_find).first
end