Sha256: f2bcaaa7489b9d5a571481a38b10f1c0a6c93854b9673ca0ffff28b5a2e62fd5
Contents?: true
Size: 500 Bytes
Versions: 8
Compression:
Stored size: 500 Bytes
Contents
module InlineFormsHelper InlineForms::SPECIAL_MIGRATION_TYPES[:date_select]=:date # date def date_show(object, attribute, values) link_to_inline_edit object, attribute, object.send(attribute), nil end def date_edit(object, attribute, values) calendar_date_select_tag attribute, object[attribute], :year_range => 30.years.ago..5.years.from_now, :popup => :force end def date_update(object, attribute, values) object[attribute.to_sym] = params[attribute.to_sym] end end
Version data entries
8 entries across 8 versions & 1 rubygems