Class: Formidable::Elements::DateSelectField

Inherits:
Element show all
Defined in:
lib/formidable/elements.rb

Overview

zna to svoje name => vi kde v params to najit “27-07-2010” => #<Date:x0>

Constant Summary

Constants included from Coercions

Coercions::IncompatibleInterface, Coercions::MissingCoercion

Constants included from Rendering

Rendering::RendererNotAssigned

Instance Attribute Summary

Attributes inherited from BasicElement

#attributes, #cleaned_data, #content, #name, #raw_data, #tag

Attributes included from Rendering

#renderer

Instance Method Summary collapse

Methods included from Coercions

#cleaned_data, #coerce, #coerce!, #coercions, coercions, included

Methods included from Validations

#errors, register_validation, #valid?, #validate, #validations

Methods inherited from BasicElement

#initialize

Methods included from Rendering

included, #render

Constructor Details

This class inherits a constructor from Formidable::Elements::BasicElement

Instance Method Details

#deserializeObject

TOHLE BUDE TADY



339
340
341
342
343
344
# File 'lib/formidable/elements.rb', line 339

def deserialize
  # [:post, :title]
  self.name.inject(params) do |hash, key|
    hash[key]
  end
end