Sha256: e5e0a1a7c6eb95c3fd3edf7aee9320e51630ebda0b7f6310693d0055d7494ed6

Contents?: true

Size: 361 Bytes

Versions: 14

Compression:

Stored size: 361 Bytes

Contents

module Rails #:nodoc:
  module VoteableMongoid #: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_mongoid/railties/database.rake'
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voteable_mongoid-0.7.6 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.7.5 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.7.4 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.7.3 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.7.2 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.7.1 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.7.0 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.6.4 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.6.3 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.6.2 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.6.1 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.6.0 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.5.0 lib/voteable_mongoid/railtie.rb
voteable_mongoid-0.4.5 lib/voteable_mongoid/railtie.rb