Sha256: bbb5c8b93d5cbde415898792df1708bf960763dc709b614ae325410af95ce659
Contents?: true
Size: 508 Bytes
Versions: 13
Compression:
Stored size: 508 Bytes
Contents
# File content type #### Rules ```ruby # 1. Check ``` #### Options Option | Type | Available | Default --- | --- | --- | --- include | array, regexp, string, symbol | | exclude | array, regexp, string, symbol | | #### Usage ```ruby class User < ActiveRecord::Base validates :input0, file_content_type: { include: 'text/csv' } validates :input1, file_content_type: { exclude: %w[image/png text/plain] } validates :input2, file_content_type: { include: /^text\/.*/, exclude: 'text/csv' } end ```
Version data entries
13 entries across 13 versions & 1 rubygems