Class: Guts::Content
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Guts::Content
- Extended by:
- FriendlyId
- Includes:
- MultisiteScopeConcern, NavigatableConcern
- Defined in:
- app/models/guts/content.rb
Overview
Content 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
24 25 26 |
# File 'app/models/guts/content.rb', line 24 def should_generate_new_friendly_id? title_changed? end |