Class: Snippr::Normalizer::DeRester

Inherits:
Object
  • Object
show all
Defined in:
lib/snippr/normalizer/de_rester.rb

Instance Method Summary collapse

Instance Method Details

#normalize(path_element) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/snippr/normalizer/de_rester.rb', line 12

def normalize(path_element)
  case path_element.to_s
  when "create" then "new"
  when "update" then "edit"
  when "destroy" then "show"
  else path_element.to_s
  end
end