Rails Foundation Contributing Member
Ruby on Rails consulting from engineers who work deep in Rails.
Saeloun helps teams modernize Rails applications, improve performance, untangle production issues, and ship product work with a senior Rails and React team in Boston and Pune.
- 606+
- engineering articles
- 2019
- founded in Boston
- Rails
- Foundation member
Latest Rails, React, and engineering articles
Field notes on framework changes, performance, upgrades, testing, and product engineering.
Rails 7 adds encryption to ActiveRecord
Rails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary.Rails 7 has_one Callbacks Called Once
In Rails 7, the autosave association callbacks for the has_one are non-cyclic.Redux 4.1.0 Error Code Indexes
Redux 4.1.0 extracts error messages from production build, converts them into error code indexes, thereby shrinking the bundle size.Rails 7 Nested Secrets via Method Calls
We can now access nested secrets stored in credentials.yml.enc using the dot (.) syntax instead of using [ ]Rails 7 disable_joins for has_one :through
In multiple database applications, associations can't join across databases. When set, Rails makes 2 or more queries rather than using join for associations.Rails 7 Adds Enumerable#sole Method
Enumerable#sole returns the sole item in the enumerable and raises an exception if no items or more than one item is found.Rails 7 adds range serializer for ActiveJob
ActiveJob in Rails 7 allows a range to be passed as an argument to perform method.Ruby 3.1 Enumerable#tally Accepts Hash
Ruby 3.1 extends Enumerable#tally to accept an optional hash for accumulating counts across collections.Ruby 3.1 adds Array#intersect? method
Ruby Array#intersect? method will return true or false based on common elements present in the two arrays.React 17 Uses focusin/focusout Events
React's onFocus and onBlur events have switched to using the native focusin and focusout events under the hood.