class Typero::ImageType
Constants
- FORMATS
Public Instance Methods
db_schema()
click to toggle source
# File lib/typero/type/types/image_type.rb, line 18 def db_schema [:string] end
set()
click to toggle source
# File lib/typero/type/types/image_type.rb, line 9 def set error_for(:image_not_starting_error) unless value =~ /^https?:\/\/./ if opts[:strict] ext = value.split('.').last.downcase error_for(:image_not_image_format) unless FORMATS.include?(ext) end end