Sha256: d020153559f66b1a3f1845bddc6b92cec0ece2a30078ed5cbdb85e75cf277ab6

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

# This is for adding specific methods that are required by sinatra_more if activesupport isn't required

unless String.method_defined?(:titleize) && Hash.method_defined?(:slice)
  require 'active_support/core_ext/array'
  require 'active_support/core_ext/hash'
  require 'active_support/deprecation'
  require 'active_support/inflector'
  require 'active_support/core_ext/kernel'
  require 'active_support/core_ext/module'
  require 'active_support/core_ext/class'
end

unless String.method_defined?(:blank?)
  begin 
    require 'active_support/core_ext/object/blank'
  rescue LoadError
    require 'active_support/core_ext/blank'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra_more-0.3.36 lib/sinatra_more/support_lite.rb