Class: Gaku::CourseDecorator
- Inherits:
-
Draper::Decorator
- Object
- Draper::Decorator
- Gaku::CourseDecorator
- Defined in:
- app/decorators/gaku/course_decorator.rb
Instance Method Summary collapse
Instance Method Details
#code_with_syllabus_name ⇒ Object
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 |