-
Notifications
You must be signed in to change notification settings - Fork 10
Use type instead of sql_type #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@lowjoel Think all specs cannot run after rails or rspec update, something to do with the spec setup, can you help with that ? |
@allenwq rebase on master. This is because the Types API is only introduced in Rails 4.2. You'd need to check for the proper attribute and used that instead. |
* Support simple_form 3.3
@lowjoel Thanks ! Updated and slightly modified the specs. |
If there are only 2 alternatives, maybe both should be tested as separate contexts? |
I have thought about that, it will duplicate the entire file and testing the same thing... finally I chose to use sample. What do you think ? |
[:type, :sql_type].each do |method|
# specs here
end |
Not that simple because Think I have a way, will update first. |
@lowjoel Updated |
@lowjoel Any comments ? |
Looks good. |
@lowjoel Thanks ! Can release a new version ? |
Released. |
Thanks ! |
Simple form updated their
find_attribute_column
in 3.3, sql_type is not work anymore.Actually, I don't know why
sql_type
is used before, @lowjoel Any comments ?