Sha256: 85e6f04f310b44367bd447c2b285d5fc56091d3da2716891d1ec35f9b3feb8dd
Contents?: true
Size: 382 Bytes
Versions: 13
Compression:
Stored size: 382 Bytes
Contents
# File extension #### Rules ```ruby # 1. Check ``` #### Options Option | Type | Available | Default --- | --- | --- | --- include | array, string, symbol | | exclude | array, string, symbol | | #### Usage ```ruby class User < ActiveRecord::Base validates :input0, file_extension: { include: 'csv' } validates :input1, file_extension: { exclude: [:png, 'text'] } end ```
Version data entries
13 entries across 13 versions & 1 rubygems