Module: Sluggi::Model

Extended by:
ActiveSupport::Concern
Defined in:
lib/sluggi/model.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

NOT_IMPLEMENTED_MESSAGE =
"You must implement #slug_value_changed? " \
"and either #slug_value or #slug_candidates"

Instance Method Summary collapse

Instance Method Details

#to_paramObject



21
22
23
# File 'lib/sluggi/model.rb', line 21

def to_param
  errors.any? ? slug_was : slug
end