Sha256: 68c8b4eee540e50ec84e4ff3830fce7295a55fb42b1b1d5d406039fc8ad111a4
Contents?: true
Size: 474 Bytes
Versions: 23
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module Extension module Models class Registration MAX_TITLE_LENGTH = 50 include SmartProperties property! :id, accepts: Integer property! :type, accepts: String property! :title, accepts: String property! :draft_version, accepts: Extension::Models::Version def self.valid_title?(title) !title.nil? && !title.strip.empty? && title.length <= MAX_TITLE_LENGTH end end end end
Version data entries
23 entries across 23 versions & 1 rubygems