Sha256: ad10a089df9b59b7c713c0e614e4c65cd24797925d73d1b00f094709418b2444

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

module Rails #:nodoc:
  module VoteableMongo #:nodoc:
    class Railtie < Rails::Railtie #:nodoc:

      initializer "preload all application models" do |app|
        config.to_prepare do
          ::Rails::Mongoid.load_models(app)
        end
      end

      rake_tasks do
        load 'voteable_mongo/railties/database.rake'
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voteable_mongo-0.9.1 lib/voteable_mongo/railtie.rb
voteable_mongo-0.9.0 lib/voteable_mongo/railtie.rb
voteable_mongo-0.8.1 lib/voteable_mongo/railtie.rb