Sha256: a20c9820674509d321051244483e1db29d7d30d83db0a6b395059444f74db679
Contents?: true
Size: 259 Bytes
Versions: 2
Compression:
Stored size: 259 Bytes
Contents
module RailsSettings class ScopedSettings < Settings def self.for_thing(object) @object = object self end def self.thing_scoped unscoped.where(thing_type: @object.class.base_class.to_s, thing_id: @object.id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-settings-cached-0.4.3 | lib/rails-settings/scoped_settings.rb |
rails-settings-cached-0.4.2 | lib/rails-settings/scoped_settings.rb |