MarioCarrion/json-array-fields-for

View on GitHub
app/models/tag.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
class Tag
  include ActiveModel::Model

  attr_accessor :name

  validates :name, length: { maximum: 5, allow_blank: true }

  def marked_for_destruction?
    false
  end
end