Sha256: 7e63bf263b2e7d915896c7d3291cbf51f7a0c4355e7d7dd000c45eb481c5b676

Contents?: true

Size: 917 Bytes

Versions: 3

Compression:

Stored size: 917 Bytes

Contents

# frozen_string_literal: true

require_relative "core_ext/ruby/array"
require_relative "core_ext/ruby/enumerator"
require_relative "core_ext/ruby/float"
require_relative "core_ext/ruby/hash"
require_relative "core_ext/ruby/object"
require_relative "core_ext/ruby/string"

require_relative "gem_info"

# activesupport related stuff
if RubySmart::Support::GemInfo.loaded?('activesupport')
  require_relative "core_ext/activesupport/hash"
end

# load Rails related stuff
if RubySmart::Support::GemInfo.loaded?('rails')
  # since the Rails::Info.property block-returns are stored on call we need to wait
  # until we have information about the rails application.
  # This is done with the following hook
  ActiveSupport.on_load(:before_initialize) do
    require_relative "core_ext/rails/info"
  end
end

# load Rake related stuff
if RubySmart::Support::GemInfo.loaded?('rake')
  require_relative "core_ext/rake/task"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_smart-support-1.5.0 lib/ruby_smart/support/core_ext.rb
ruby_smart-support-1.4.0 lib/ruby_smart/support/core_ext.rb
ruby_smart-support-1.3.0 lib/ruby_smart/support/core_ext.rb