Sha256: 12a6687a3aaf54d92595057ce5ebb8b122c315da927e2925b5b8663f2115ba50
Contents?: true
Size: 969 Bytes
Versions: 2
Compression:
Stored size: 969 Bytes
Contents
require 'rubygems' plugin_root = File.expand_path(File.join(File.dirname(__FILE__),'..')) framework_root = ["#{plugin_root}/rails", "#{plugin_root}/../../rails"].detect { |p| File.directory? p } rails_version = ENV['RAILS_VERSION'] rails_version = nil if rails_version && rails_version == '' ['.','lib','test'].each do |plugin_lib| load_path = File.expand_path("#{plugin_root}/#{plugin_lib}") $LOAD_PATH.unshift(load_path) unless $LOAD_PATH.include?(load_path) end if rails_version.nil? && framework_root puts "Found framework root: #{framework_root}" $:.unshift "#{framework_root}/activesupport/lib", "#{framework_root}/activerecord/lib" else puts "Using rails#{" #{rails_version}" if rails_version} from gems" if rails_version gem 'rails', rails_version else gem 'activerecord' end end require 'active_record' require 'active_support' gem 'mislav-will_paginate', '2.3.4' require 'will_paginate' WillPaginate.enable_activerecord
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
decisiv-grouped_scope-0.6.0.1 | test/lib/boot.rb |
metaskills-grouped_scope-0.6.0 | test/lib/boot.rb |