From 60f51c1fcc4a659a30cf8fa7ba61dc2f5e77a50d Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Mon, 22 Nov 2010 19:44:08 -0500 Subject: [PATCH] [#870] don't put inheritance column in hidden-fields --- hobo/taglibs/rapid_forms.dryml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hobo/taglibs/rapid_forms.dryml b/hobo/taglibs/rapid_forms.dryml index d531ca7..97306bd 100644 --- a/hobo/taglibs/rapid_forms.dryml +++ b/hobo/taglibs/rapid_forms.dryml @@ -51,7 +51,8 @@ executed at various points in the ajax request cycle: hiddens = case fields when '*', nil # TODO: Need a better (i.e. extensible) way to eleminate certain fields - this.class.column_names - ['type', 'created_at', 'updated_at'] + # marking a field as attr_protected is one way to eliminate a field + this.class.column_names - [this.inheritance_column, 'created_at', 'updated_at'] else comma_split(fields) end -- 1.7.3.2