Sha256: cf511b07cad9c01d1f2d240c59093c22080bdd3aa7fec7d395367f50910ced5a

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Enlightenment
  module Validations
    module ValidatesFormat
      extend ActiveSupport::Concern

      module ClassMethods
        def format_validator(params = {})
          { :regex => params[:val_obj].options[:with].inspect }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enlightenment-0.0.1.pre.4 lib/enlightenment/validations/validates_format.rb