class Typero::LocaleType
Public Instance Methods
db_schema()
click to toggle source
# File lib/typero/type/types/locale_type.rb, line 8 def db_schema [:string, { limit: 5 }] end
set()
click to toggle source
# File lib/typero/type/types/locale_type.rb, line 4 def set error_for(:locale_bad_format, value) unless value =~ /^[\w\-]{2,5}$/ end