Sha256: c7fd28154f153d62471f81a35a8ccbd0bce490b2c7ea58736ea022daef5074c6
Contents?: true
Size: 630 Bytes
Versions: 14
Compression:
Stored size: 630 Bytes
Contents
# Used on the Course Registrations courses step class EffectiveCourseRegistrantsDatatable < Effective::Datatable datatable do col :learndash_course, label: 'Title' col :owner, label: 'Registrant', action: false col :price, as: :price end collection do scope = Effective::CourseRegistrant.deep.all if attributes[:learndash_course_id].present? scope = scope.where(learndash_course_id: attributes[:learndash_course_id]) end if attributes[:course_registration_id].present? scope = scope.where(course_registration_id: attributes[:course_registration_id]) end scope end end
Version data entries
14 entries across 14 versions & 1 rubygems