Sha256: ebbb08e648974927150876b5aa25f9e177fb47b4ceff3267ca6f363ee42c1d60
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
module Findable module Namespace extend ActiveSupport::Concern module ClassMethods def info_key namespace[:info] end def data_key namespace[:data] end private def namespace %i(info data).each_with_object({}) do |name, obj| obj[name] = [self.model_name.plural, name].join(":") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
findable-0.0.3 | lib/findable/namespace.rb |
findable-0.0.2 | lib/findable/namespace.rb |
findable-0.0.1 | lib/findable/namespace.rb |