Method: ActiveSupport::Inflector#dasherize

Defined in:
lib/active_support/inflector/methods.rb

#dasherize(underscored_word) ⇒ Object

Replaces underscores with dashes in the string.

Example:

"puni_puni" # => "puni-puni"


149
150
151
# File 'lib/active_support/inflector/methods.rb', line 149

def dasherize(underscored_word)
  underscored_word.gsub(/_/, '-')
end