jibiel
jibiel
@dekellum Here you go: ``` ruby require 'benchmark' n = 100000 class User ROLES = %w(admin moderator contributor) def self.roles_constant_wrapper self::ROLES end def self.roles_with_caching @roles ||= %w(admin moderator contributor) end...
@bwilkerson Turns out we also have "Dart: Sort Members" within VS Code via Dart extension. But it produces strange results: * Placing static constants/variables and final fields before a constructor...
@gwinn Thanks for the workaround! @vigetlabs @tpitale @reagent Any plans to fix on that?
@jarl-dk Ok, here's the new model: ``` ruby class Reportable < ActiveRecord::Base has_no_table has_one :report, as: :reportable column :smth, :string end ``` The other two are still [the same](#issue-33991479) (though...
I suppose, that is not a big deal if I'm the only one concerning. I imagine that the concept is difficult enough without the thing I'm asking. Meanwhile, we use...
@jarl-dk `ActiveRecord::Tableless` is a fine `gem`. I personally use it for every `rails` project when migrating from other frameworks, like `CodeIgniter`, `WordPress`, etc. Have you thought about assigning more Collaborators...
[A similar report](http://stackoverflow.com/q/24996388/535406).