You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attribute validation does not pass the end user does not know anything about it
Overall in Ruby in such type of cases developers use symbols because they by default have a similar behavior as constants and do not take additional memory
Raise error or log warn message when the attribute didn't pass the validation
Instead of looking in an array that will take O(n) time rather use a Hash or Set that will take O(1). Rails provide also Hash With Indifferent Access that will make it possible to use symbols and strings as keys
@scarroll32 What do you think? I can implement it and cover via test cases
The text was updated successfully, but these errors were encountered:
Ransack version: >= 4.0
Rails: >= 7.x
Possible scenario when the issue occurs:
What is the problem:
The method: valid?
Options to resolve:
@scarroll32 What do you think? I can implement it and cover via test cases
The text was updated successfully, but these errors were encountered: