Class: PUNK::Group

Inherits:
Model
  • Object
show all
Defined in:
lib/punk/models/group.rb

Instance Method Summary collapse

Methods inherited from Model

#inspect, sample, sample_dataset, symbolize

Methods included from Loggable

#exception, #logger, #profile_debug, #profile_info, #profile_trace

Instance Method Details

#validateObject



14
15
16
17
18
# File 'lib/punk/models/group.rb', line 14

def validate
  validates_presence :tenant
  validates_presence :name
  validates_url :icon, allow_blank: true
end