Ruby in Rails
  • Home
  • Rails
  • Ruby
  • About
GitHub icon LinkedIn icon
Subscribe

Rails

A collection of 87 posts

Rails

Rails 6 Parallel Tests

Rails 6 applications will run tests in parallel by default. The number of parallel workers to run tests can be customised. Moreover, all the parallel worker processes will have their own temporary database

Akshay Mohite Akshay Mohite 2 min read
Rails

Rails 6 ActiveRecord disable enum scopes

Rails 6 ActiveRecord added an option to be able to disable scopes generated by Rails enums by default. These scopes can cause conflict with method names on model or in general Rails application.

Akshay Mohite Akshay Mohite 2 min read
Rails

Rails 6 ActiveRecord supports Multi DB connection switching

Rails 6 ActiveRecord supports Multiple database connection switching. Moreover, we can use different database connections for reading / writing with use of replicas to improve performance of the application.

Akshay Mohite Akshay Mohite 3 min read
Rails

Rails usage of after_commit vs after_save

Rails provides ActiveRecord callbacks to perform an action after a record is updated in the database. But, when to use after_commit vs after_save really depends on the activities that need to be done

Akshay Mohite Akshay Mohite 3 min read
Rails

Ruby Detect vs Select method on Enumerable

There is a subtle difference between Detect and Select method in Ruby. Select and detect both operate on Enumerable and require a condition to return the result. The primary difference between the two

Akshay Mohite Akshay Mohite 2 min read
Rails

Rails generate password protected PDF file with Prawn

Generating password protected PDF file is required if data being exported is sensitive. In Rails, Prawn gem can be used to generate password protected PDF file.

Akshay Mohite Akshay Mohite 3 min read
« Newer Posts Page 3 of 15 Older Posts »
Ruby in Rails © 2023
Latest Posts Github Twitter LinkedIn

Subscribe to Ruby in Rails

Stay up to date! Get all the latest posts delivered straight to your inbox