Class: Guts::Navigation
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Guts::Navigation
- Extended by:
- FriendlyId
- Includes:
- MultisiteScopeConcern
- Defined in:
- app/models/guts/navigation.rb
Overview
Navigation model
Instance Method Summary collapse
-
#should_generate_new_friendly_id? ⇒ Boolean
Updates slug if title changes.
Instance Method Details
#should_generate_new_friendly_id? ⇒ Boolean
Updates slug if title changes
18 19 20 |
# File 'app/models/guts/navigation.rb', line 18 def should_generate_new_friendly_id? title_changed? end |