lib/generators/adminpanel/resource/resource_generator.rb in adminpanel-2.5.3 vs lib/generators/adminpanel/resource/resource_generator.rb in adminpanel-2.5.4

- old
+ new

@@ -21,9 +21,15 @@ fields.each do |attribute| case attribute.split(':').second when 'wysiwyg' fields_to_delete << attribute fields << attribute.split(':').first + ':' + 'text' + when 'belongs_to' + fields_to_delete << attribute + fields << attribute.split(':').first + ':' + 'select' + when 'has_many' + fields_to_delete << attribute + fields << attribute.split(':').first + ':' + 'checkbox' end end fields_to_delete.each do |field| fields.delete(field) end