Sha256: 55052068c5ff8e00c948685a0da5eae9ed2b7fc25285cb44b84c0610867f1564
Contents?: true
Size: 273 Bytes
Versions: 16
Compression:
Stored size: 273 Bytes
Contents
module Gaku class CourseDecorator < Draper::Decorator decorates 'Gaku::Course' delegate_all def code_with_syllabus_name if object.syllabus_name "#{object.syllabus_name}-#{object.code}" else object.code end end end end
Version data entries
16 entries across 16 versions & 2 rubygems