Sha256: 829ff82cae3757d0e457ce1da02a20fb45cff3fd76582e577d1d0efcdfcc48bf
Contents?: true
Size: 591 Bytes
Versions: 7
Compression:
Stored size: 591 Bytes
Contents
module LatoCore class Inputs::Dropzone::Cell < Cell @@requested_args = [:url] @@default_args = { param_name: 'file', max_size: 2, # MB max_files: 99, method: 'post', label: '' } def initialize(args = {}) @args = validate_args( args: args, requested_args: @@requested_args, default_args: @@default_args ) set_conditions end def show render 'show.html' end private def set_conditions @show_label = !@args[:label].nil? && !@args[:label].blank? end end end
Version data entries
7 entries across 7 versions & 1 rubygems