Class: Guts::Content

Inherits:
ApplicationRecord show all
Extended by:
FriendlyId
Includes:
MultisiteScopeConcern, NavigatableConcern
Defined in:
app/models/guts/content.rb

Overview

Content model

Instance Method Summary collapse

Instance Method Details

#should_generate_new_friendly_id?Boolean

Updates slug if title changes

Returns:

  • (Boolean)


24
25
26
# File 'app/models/guts/content.rb', line 24

def should_generate_new_friendly_id?
  title_changed?
end