Sha256: 601d4172793666ce8f8799419b859c863f30796694260f802880881effa53152

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

# encoding: UTF-8

require 'iqvoc/similar_terms/version'

module IqvocSimilarTerms

  def self.app?
    Iqvoc.const_defined?(:SimilarTerms) && Iqvoc::SimilarTerms.const_defined?(:Application)
  end

  def self.root
    if app?
      Rails.root
    else
      Iqvoc::SimilarTerms::Engine.root
    end
  end

  unless app?
    require File.join(File.dirname(__FILE__), '../config/engine')
  end

  ActiveSupport.on_load(:after_iqvoc_config) do
    require 'iqvoc'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iqvoc_similar_terms-2.7.0 lib/iqvoc_similar_terms.rb