Sha256: 7e8add9ddb780db3ac056cb373de4fed3088b3619d4a06b7ec97c097ef18c5ac

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

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

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

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

    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rs_voteable_mongo-1.3.0 lib/voteable_mongo/railtie.rb
rs_voteable_mongo-1.2.0 lib/voteable_mongo/railtie.rb
rs_voteable_mongo-1.1.0 lib/voteable_mongo/railtie.rb
rs_voteable_mongo-1.0.2 lib/voteable_mongo/railtie.rb
rs_voteable_mongo-1.0.1 lib/voteable_mongo/railtie.rb
rs_voteable_mongo-1.0.0 lib/voteable_mongo/railtie.rb
voteable_mongo-0.9.3 lib/voteable_mongo/railtie.rb
voteable_mongo-0.9.2 lib/voteable_mongo/railtie.rb