parent
10d7fb1cc1
commit
b1e7d72e5b
@ -1,12 +0,0 @@
|
||||
# This class currently doesn't serve any purpose except pure data storage
|
||||
class Tag < Sequel::Model
|
||||
# Ignore mass-asigment on not allowed columns
|
||||
self.strict_param_setting = false
|
||||
|
||||
set_allowed_columns(:name)
|
||||
|
||||
def validate
|
||||
super
|
||||
errors.add(:name, "can't be blank") if name.blank?
|
||||
end
|
||||
end
|
Loading…
Reference in new issue