Class: Extension::Models::Registration

Inherits:
Object
  • Object
show all
Includes:
SmartProperties
Defined in:
lib/project_types/extension/models/registration.rb

Constant Summary collapse

MAX_TITLE_LENGTH =
50

Class Method Summary collapse

Class Method Details

.valid_title?(title) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/project_types/extension/models/registration.rb', line 15

def self.valid_title?(title)
  !title.nil? && !title.strip.empty? && title.length <= MAX_TITLE_LENGTH
end