mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 01:36:10 +01:00
Vendoring Rails 2.3.5
This commit is contained in:
parent
3e83d19299
commit
f8779795ce
943 changed files with 56503 additions and 61351 deletions
42
vendor/rails/railties/guides/rails_guides.rb
vendored
Normal file
42
vendor/rails/railties/guides/rails_guides.rb
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
pwd = File.dirname(__FILE__)
|
||||
$: << pwd
|
||||
|
||||
begin
|
||||
as_lib = File.join(pwd, "../../activesupport/lib")
|
||||
ap_lib = File.join(pwd, "../../actionpack/lib")
|
||||
|
||||
$: << as_lib if File.directory?(as_lib)
|
||||
$: << ap_lib if File.directory?(ap_lib)
|
||||
|
||||
require "action_controller"
|
||||
require "action_view"
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
gem "actionpack", '>= 2.3'
|
||||
|
||||
require "action_controller"
|
||||
require "action_view"
|
||||
end
|
||||
|
||||
begin
|
||||
require 'rubygems'
|
||||
gem 'RedCloth', '>= 4.1.1'
|
||||
rescue Gem::LoadError
|
||||
$stderr.puts %(Generating Guides requires RedCloth 4.1.1+)
|
||||
exit 1
|
||||
end
|
||||
|
||||
require 'redcloth'
|
||||
|
||||
module RailsGuides
|
||||
autoload :Generator, "rails_guides/generator"
|
||||
autoload :Indexer, "rails_guides/indexer"
|
||||
autoload :Helpers, "rails_guides/helpers"
|
||||
autoload :TextileExtensions, "rails_guides/textile_extensions"
|
||||
end
|
||||
|
||||
RedCloth.send(:include, RailsGuides::TextileExtensions)
|
||||
|
||||
if $0 == __FILE__
|
||||
RailsGuides::Generator.new.generate
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue