Sha256: f1404f93b4312391c48e8d892d96143f7c0294bf281307a27e44f6faf916185b

Contents?: true

Size: 641 Bytes

Versions: 10

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/kernel'
  require 'active_support/core_ext/module'
  require 'active_support/core_ext/class'
  require 'active_support/deprecation'
  require 'active_support/inflector'
  require 'active_support/core_ext/hash'
  require 'active_support/core_ext/array'
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

10 entries across 10 versions & 1 rubygems

Version Path
sinatra_more-0.3.35 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.34 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.33 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.32 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.31 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.30 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.29 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.28 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.27 lib/sinatra_more/support_lite.rb
sinatra_more-0.3.26 lib/sinatra_more/support_lite.rb