jibiel
jibiel
Greetings, I would like to hear some community standpoint regarding this matter. ``` ruby class User < ActiveRecord::Base ROLES = %w(admin moderator contributor) end # > User::ROLES # => ["admin",...
9cf4b48 fixes the majority of the analyzer warnings (mostly redundant `const` declarations). 0889610 migrates the package to null safety. Notes: * `author` `pubspec.yml` attribute is no longer supported. * Major...
Greetings. Currently I'm trying to initialize object through `has_one` association like this: ``` ruby class Report < ActiveRecord::Base has_no_table belongs_to :reportable, polymorphic: true column :reportable_id, :integer column :reportable_type, :string column...
Consistently structured class declarations are often regarded as not important but they sure improve code readability and a definite must-have for teams. The most comprehensive guide on this topic is...
Greetings, gentlemen. `Gon` never gave me any pain until last night when I decided to write specs for one of my controller concerns _(simplified example)_: ``` ruby shared_examples_for :concernable do...