Taking my first baby steps in procedural art... image generation, using Celestine library for @crystalLanguage

ActiveRecord::Persistence defines an update instance method, accepting attributes, that tries to save to database and returns false if it did not work.

It also defines .update class method, accepting id and attributes, that returns object no matter if persisting succeeded.

This is most Rails thing I discovered in a while.

Interesting thread on Twitter about Rails, Spring and Bootsnap: twitter.com/avdi/status/125674

Personally I think Bootsnap is pretty good, although it does not need to be added right away for every Rails app. Spring on the other hand only causes problems.


A Mastodon instance for Rubyists & friends