Sha256: 5f22e54d4185ab116999e314ac7b3de8c16ded263775026844a60b93a2835181

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

module SoulmateRails
  class Railtie < Rails::Railtie
    initializer 'soulmate_rails.model_additions' do
      ActiveSupport.on_load :active_record do
        include ModelAdditions
      end
    end

    initializer 'soulmate_rails.set_configs' do |app|
      options = app.config.soulmate_rails

      Soulmate.redis = options[:redis] if options[:redis]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soulmate_rails-0.3.0 lib/soulmate_rails/railtie.rb
soulmate_rails-0.2.1 lib/soulmate_rails/railtie.rb
soulmate_rails-0.2.1.beta lib/soulmate_rails/railtie.rb
soulmate_rails-0.2.0.alpha lib/soulmate_rails/railtie.rb