Skip to content

v0.4.0

Compare
Choose a tag to compare
@yuki24 yuki24 released this 20 Apr 02:10
· 728 commits to master since this release

Features

  • did_you_mean now suggests a similar attribute name when you misspelled it.
User.new(flrst_name: "wrong flrst name")
# => ActiveRecord::UnknownAttributeError: unknown attribute: flrst_name
#
#     Did you mean? first_name: string
#

Bug Fixes

  • Fixed a bug where did_you_mean doesn't work with ActiveRecord::UnknownAttributeError