Sha256: 400785818294858c157acfd02c832a922396440f087a0c117656a16d93d0e8f8
Contents?: true
Size: 615 Bytes
Versions: 3
Compression:
Stored size: 615 Bytes
Contents
module LatoCore class Inputs::Form::Cell < Cell @@requested_args = [:url] @@default_args = { method: 'post', remote: false, class: '', multipart: false } def initialize(args = {}) @args = validate_args( args: args, requested_args: @@requested_args, default_args: @@default_args ) set_conditions end def open render 'open.html' end def close render 'close.html' end private def set_conditions @form_method = (@args[:method] === 'get' ? 'get' : 'post') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lato_core-2.2.2 | app/cells/lato_core/inputs/form/cell.rb |
lato_core-2.2.0 | app/cells/lato_core/inputs/form/cell.rb |
lato_core-2.1.4 | app/cells/lato_core/inputs/form/cell.rb |