Sha256: 1d31ae64b0e30dac432c71d39bb6cf28875327d4ccf6386d2342f7f0d7862c5c
Contents?: true
Size: 334 Bytes
Versions: 19
Compression:
Stored size: 334 Bytes
Contents
module WithDiscussionStatus extend ActiveSupport::Concern included do serialize :status, Mumuki::Laboratory::Status::Discussion validates_presence_of :status scope :by_status, -> (status) { where(status: status) } end delegate :closed?, :opened?, :solved?, :pending_review?, :reachable_statuses, to: :status end
Version data entries
19 entries across 19 versions & 1 rubygems