Sha256: 9d63a72a0ea5f3fd2cacfbbcf86a47e1bf30b44f79281821fa87b3a5f1ba77e8
Contents?: true
Size: 513 Bytes
Versions: 74
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true module Extension module Models class Registration MAX_TITLE_LENGTH = 50 include SmartProperties property! :id, accepts: Integer property! :uuid, accepts: String 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
74 entries across 74 versions & 1 rubygems