lib/netzke/db_fields.rb in netzke-basepack-0.3.10 vs lib/netzke/db_fields.rb in netzke-basepack-0.4.0

- old
+ new

@@ -1,6 +1,10 @@ module Netzke module DbFields + # + # Default fields for a widget of class GridPanel or FormPanel + # It is a synthesis of 1) columns declared in the model, 2) columns provided in the configuration for the widget + # def default_db_fields config[:data_class_name].nil? && raise(ArgumentError, "No data_class_name specified for widget #{config[:name]}") data_class = config[:data_class_name].constantize exposed_columns = normalize_columns(data_class.exposed_columns) # columns exposed from the data class \ No newline at end of file