Sha256: d413fcf956ddca24e3f27a4e224d3f678a781dce7a74e95b9cd79af1d68b731c
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
module Adhearsion module Mongoid ## # Adhearsion Plugin that defines the Mongoid configuration options # and includes a hook to start the Mongoid service in Adhearsion initialization process class Plugin < Adhearsion::Plugin extend ActiveSupport::Autoload autoload :Service, 'adhearsion/mongoid/plugin/service' # Configure models path ('lib/models' by default) and Mongoid configuration path ('config/mongoid.yml' by default) config :adhearsion_mongoid do models_paths ['lib/models'], :desc => 'paths to directories containing models files to load' config_path 'config/mongoid.yml', :desc => 'path to Mongoid configuration file' end # Include the Mongoid service in plugins initialization process init :adhearsion_mongoid do Service.start end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-mongoid-0.2.1 | lib/adhearsion/mongoid/plugin.rb |
adhearsion-mongoid-0.2.0 | lib/adhearsion/mongoid/plugin.rb |
adhearsion-mongoid-0.1.0 | lib/adhearsion/mongoid/plugin.rb |