lib/freeform/form/property.rb in freeform-0.0.2 vs lib/freeform/form/property.rb in freeform-0.0.3.rc1

- old
+ new

@@ -31,9 +31,15 @@ #------------------------------------------------------------------------ def ignored_blank_params @ignored_blank_params ||= [] end + def allow_destroy_on_save + # Define _destroy method for marked-for-destruction handling + attr_accessor :_destroy + alias_method :marked_for_destruction, :_destroy + end + def property(attribute, options={}) if options[:on] def_delegator options[:on], attribute def_delegator options[:on], "#{attribute}=".to_sym else \ No newline at end of file