Module: FriendlyId::Slugged

Defined in:
lib/stringex_friendly_id/patch.rb

Instance Method Summary collapse

Instance Method Details

#normalize_friendly_id(value) ⇒ Object



3
4
5
6
# File 'lib/stringex_friendly_id/patch.rb', line 3

def normalize_friendly_id(value)
  # Use Stringex's `to_url` instead of Rails' `parameterize`
  value.to_s.to_url
end