Sha256: ef6856ea338494040a2660e4ffa530e1d778567e55701d9da2c759935d2d0786
Contents?: true
Size: 537 Bytes
Versions: 9
Compression:
Stored size: 537 Bytes
Contents
begin require "mongoid" rescue LoadError abort "You need the mongoid gem in order to use the ActiveRecord cockpit store" end module Cockpit module Mongo class Support def included(base) base.class_eval do embeds_many :settings, :as => :configurable end end end class Setting include Mongoid::Document field :key field :value field :context embedded_in :configurable, :inverse_of => :setting end class Store end end end
Version data entries
9 entries across 9 versions & 1 rubygems