Module: EncodedId::Rails::SluggedPathParam
- Defined in:
- lib/encoded_id/rails/slugged_path_param.rb
Overview
Overrides to_param to return the slugged encoded ID for use in URLs.
Instance Method Summary collapse
Instance Method Details
#to_param ⇒ Object
17 18 19 |
# File 'lib/encoded_id/rails/slugged_path_param.rb', line 17 def to_param slugged_encoded_id || raise(StandardError, "Cannot create path param for #{self.class.name} without an encoded id") end |