Good day! I can’t find two tiny features in Rails that are necessary in my mind. I’m sorry if I’m not right. Thanks for attention!
- Only-Except filter method. Such as in
before_filter
. This feature is used really often. But I found no method for this in ActiveSupport…
- Is
Object#not_nil?
logical, isn’t it? It will replace (not obj.nil?) ? something_main_and_important : ‘no’ to (beautiful) obj.not_nil? ? something_main_and_important : ‘no’
Amn’t I right?