Rails 6 tips


1. Dig session
Instead session.to_hash.dig("user", :name, :first)
U can use session.dig("user", :name, :first)
2. Filter custom attri
User.filter_attributes = [:email, :password] or in config/filter_parameter_logging.rb
3.

Comments