Sha256: bcaca8eddbe7ab88265ef219b8f327ff11097dc84375e7cbdc6284a383a8e827

Contents?: true

Size: 322 Bytes

Versions: 21

Compression:

Stored size: 322 Bytes

Contents

module Elastics
  module Rails
    module Helper
      extend self

      def after_initialize
        # we need to reload the elastics API methods with the new variables
        Elastics.reload!
        Conf.elastics_models && Conf.elastics_models.each {|m| eval"::#{m}" if m.is_a?(String) }
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
elastics-rails-1.2.1 lib/elastics/rails/helper.rb
elastics-rails-1.2.0 lib/elastics/rails/helper.rb
elastics-rails-1.1.11 lib/elastics/rails/helper.rb
elastics-rails-1.1.10 lib/elastics/rails/helper.rb
elastics-rails-1.1.9 lib/elastics/rails/helper.rb
elastics-rails-1.1.8 lib/elastics/rails/helper.rb
elastics-rails-1.1.7 lib/elastics/rails/helper.rb
elastics-rails-1.1.6 lib/elastics/rails/helper.rb
elastics-rails-1.1.5 lib/elastics/rails/helper.rb
elastics-rails-1.1.4 lib/elastics/rails/helper.rb
elastics-rails-1.1.3 lib/elastics/rails/helper.rb
elastics-rails-1.1.2 lib/elastics/rails/helper.rb
elastics-rails-1.1.1 lib/elastics/rails/helper.rb
elastics-rails-1.1.0 lib/elastics/rails/helper.rb
elastics-rails-1.0.10 lib/elastics/rails/helper.rb
elastics-rails-1.0.9 lib/elastics/rails/helper.rb
elastics-rails-1.0.8 lib/elastics/rails/helper.rb
elastics-rails-1.0.7 lib/elastics/rails/helper.rb
elastics-rails-1.0.6 lib/elastics/rails/helper.rb
elastics-rails-1.0.5 lib/elastics/rails/helper.rb