Class: Gaku::CourseDecorator

Inherits:
Draper::Decorator
  • Object
show all
Defined in:
app/decorators/gaku/course_decorator.rb

Instance Method Summary collapse

Instance Method Details

#code_with_syllabus_nameObject



6
7
8
9
10
11
12
# File 'app/decorators/gaku/course_decorator.rb', line 6

def code_with_syllabus_name
  if object.syllabus_name
    "#{object.syllabus_name}-#{object.code}"
  else
    object.code
  end
end