Sha256: e7063fae90ac4954f3117068405045195a3289a56a7afc0fbcc776fb8ac45230
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true class Gutentag::TagValidations def self.call(klass) new(klass).call end def initialize(klass) @klass = klass end def call klass.validates :name, :presence => true, :uniqueness => {:case_sensitive => false} end private attr_reader :klass end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gutentag-1.0.0 | lib/gutentag/tag_validations.rb |