Module: MercuryHelper

Defined in:
app/helpers/mercury_helper.rb

Instance Method Summary collapse

Instance Method Details

#mercury_edit_path(path = nil) ⇒ Object



3
4
5
# File 'app/helpers/mercury_helper.rb', line 3

def mercury_edit_path(path = nil)
  mercury_engine.mercury_editor_path(path.nil? ? request.path.gsub(/^\/\/?(editor)?/, '') : path)
end