Learn about what's new in Rails 4.2. Here about the new Active Job queuing adapter, Action Mailer additions, Adequate Record, the development web console, foreign key support and more.
Project Based Learning (A.I).pptx detail explanation
What's New In Rails 4.2
1. What’s New In Rails 4.2
Creston Jamison
Ruby Tree Software
2. Active Job / ActionMailer
● Adapter layer on top of queuing systems
● Supports: Delayed Job, Resque, Sidekiq,
queue_classic, etc.
● ActionMailer now uses Active Job to support
the deliver_later method (also deliver_now)
● GlobalID library allows unique identification
of a model instance
3. Adequate Record
● Caching in ActiveRecord resulting in up to a
2X speed boost
● Applies to these types of queries:
o Post.find(id)
o Post.find_by_name(name)
o Post.find_by(name: name)
4. Web Console
Web based console right on an exception page
in the development environment.
5. Foreign Keys
● DB Foreign Key support in migrations
● Only supported by the postgresql and mysql
db adapters
● Less orphaned records!
8. ● Smoothest Rails migration yet
● Although, inserts are fairly slow . . .
● 5.5 msec response time to a 7.5 msec
response time (time spent in Ruby according
to New Relic)
My Experiences