Module: FriendlyName

Included in:
Chapter, Complement, Exam, Exercise, Lesson
Defined in:
app/models/concerns/friendly_name.rb

Instance Method Summary collapse

Instance Method Details

#friendly_nameObject



7
8
9
# File 'app/models/concerns/friendly_name.rb', line 7

def friendly_name
  "#{id} #{friendly}".friendlish
end

#to_paramObject



3
4
5
# File 'app/models/concerns/friendly_name.rb', line 3

def to_param
  friendly_name
end