Sha256: 5aa8114b027a560a3782251e0a14ccc6c3a4b5c24add3af78853767c4f6731ea

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

require 'groupify'
require 'rails'

module Groupify
  class Railtie < Rails::Railtie

    initializer "groupify.active_record" do |app|
      ActiveSupport.on_load :active_record do
        require 'groupify/adapter/active_record'
      end
    end
    
    initializer "groupify.mongoid" do |app|
      if defined?(Mongoid)
        require 'groupify/adapter/mongoid'
      end
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
groupify-0.9.0 lib/groupify/railtie.rb
groupify-0.8.0 lib/groupify/railtie.rb
groupify-0.7.2 lib/groupify/railtie.rb
groupify-0.7.1 lib/groupify/railtie.rb
groupify-0.7.0 lib/groupify/railtie.rb
groupify-0.6.3 lib/groupify/railtie.rb
groupify-0.6.2 lib/groupify/railtie.rb
groupify-0.6.1 lib/groupify/railtie.rb
groupify-0.6.0 lib/groupify/railtie.rb
groupify-0.6.0.rc2 lib/groupify/railtie.rb