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.
- 599+
- 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 Context for Unpermitted Params
Rails 7 enables passing context to ActionController::Parameters providing more information to the developer.Ruby 3.1 Adds Enumerable#compact
Ruby 3.1 adds Enumerable#compact and Enumerator::Lazy#compact to return a copy of `self` with all `nil` elements removed.React 17 Async useEffect Cleanup
React 17 executes useEffect cleanup functions asynchronously, improving the performance of large applications.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.