Did anyone experienced this? I was rather surprised to see it:
RailsSettings::ScopedSettings.count == user.settings.all.count && user.settings.all.count == 739
(0.8ms) SELECT COUNT(*) FROM "settings"
(0.5ms) SELECT COUNT(*) FROM "settings"
(0.6ms) SELECT COUNT(*) FROM "settings"
=> true
SQL logs also shows that thing_id/thing_type is not used in SQL query completely, it returns settings of all users despite thing_id/thing_type references.
user is an instance of a regular ActiveRecord::Base class.(which contains include RailsSettings::Extend)
Did anyone experienced this? I was rather surprised to see it:
SQL logs also shows that thing_id/thing_type is not used in SQL query completely, it returns settings of all users despite thing_id/thing_type references.
user
is an instance of a regularActiveRecord::Base
class.(which containsinclude RailsSettings::Extend
)P.S. rails-settings-cached (0.6.2)