Support rails 4.1

Rails 4.1 doesn't pass a `proc` anymore.

https://github.com/rails/rails/blob/master/actionview/lib/action_view/helpers/form_helper.rb#L1246-L1259
Don't need these regexp. causes stack overflow :/

keeping here for previous versions