Sha256: a68a87d8ee61c6199286b3364538118a9115c2dbdf7626b4056952a25a203d30
Contents?: true
Size: 255 Bytes
Versions: 11
Compression:
Stored size: 255 Bytes
Contents
module RailsSettings class ScopedSettings < Base 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
11 entries across 11 versions & 2 rubygems