Sha256: f2d9bff5b2f73031856082fcf3c3563dc1890ae82fc812dfa11b2d918d4231fe

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 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

6 entries across 6 versions & 1 rubygems

Version Path
groupify-0.6.0.rc1 lib/groupify/railtie.rb
groupify-0.5.1 lib/groupify/railtie.rb
groupify-0.5.0 lib/groupify/railtie.rb
groupify-0.4.2 lib/groupify/railtie.rb
groupify-0.4.1 lib/groupify/railtie.rb
groupify-0.4.0 lib/groupify/railtie.rb