lib/rfm/layout.rb in ginjo-rfm-2.0.1 vs lib/rfm/layout.rb in ginjo-rfm-2.0.2

- old
+ new

@@ -141,10 +141,11 @@ @loaded = false @field_controls = Rfm::CaseInsensitiveHash.new @value_lists = Rfm::CaseInsensitiveHash.new # @portal_meta = nil # @field_names = nil + @ignore_bad_data = (db_obj.server.state[:ignore_bad_data] rescue nil) end meta_attr_reader :db attr_reader :name #, :db attr_writer :field_names, :portal_meta, :table @@ -372,9 +373,14 @@ @field_controls[name] = field_control end } @field_names ||= @field_controls.collect{|k,v| v.name rescue v[0].name} @field_controls.freeze + end + + def ignore_bad_data(val = nil) + (@ignore_bad_data = val) unless val.nil? + @ignore_bad_data end private :load, :get_records, :params \ No newline at end of file