heartcombo--simple_form/test
Travis Grathwell 1a82fb20c5 Ensure the arg sent to `type_for_attribute` is a string
Per the docs, it is required to be a string:
http://api.rubyonrails.org/v5.0.0/classes/ActiveRecord/ModelSchema/ClassMethods.html#method-i-type_for_attribute

If you send a symbol, you will get an empty
ActiveRecord::Type::Value instance instead of the actual
column type you might have expected.

Since `f.input [attr]` can otherwise be invoked with
either a symbol or string, it seems important to
support both.

Fixes #1421
2016-08-25 22:57:23 -07:00
..
action_view_extensions Merge pull request #1109 from rmm5t/simple_form_for-config-overrides 2014-11-19 14:23:45 -02:00
components Remove all warnings of invalid CSS selector 2014-09-08 17:19:40 -03:00
form_builder Use the `ActiveModel::Type` API when available 2016-08-12 16:38:42 -03:00
generators
inputs Add specs for required option when not using browser validations 2016-08-13 16:34:02 -04:00
support Ensure the arg sent to `type_for_attribute` is a string 2016-08-25 22:57:23 -07:00
simple_form_test.rb
test_helper.rb Get rid of annoying deprecation warning from Rails 4.2 2015-01-04 15:05:23 -02:00