get right input class when inheriting form builders

* this unfortunately does not work on Ruby 1.8
  when cache_classes is on