RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Rails 5.2 adds default option to module and class attribute accessors

Rails 5.2 now supports specifying a default value using default option for the module and class macros like mattr_accessor, mattr_reader, mattr_writer, cattr_accessor, cattr_reader, and cattr_writer respectively. Read more about it here.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in