1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/rails_guides.rb
Yves Senn 8adfba360b Merge pull request #19240 from yui-knk/refactor/guide_rb
Remove gem check in guides/rails_guides.rb

Conflicts:
	guides/rails_guides.rb
2015-03-18 12:32:10 +01:00

17 lines
437 B
Ruby

pwd = File.dirname(__FILE__)
$:.unshift pwd
begin
# Guides generation in the Rails repo.
as_lib = File.join(pwd, "../activesupport/lib")
ap_lib = File.join(pwd, "../actionpack/lib")
$:.unshift as_lib if File.directory?(as_lib)
$:.unshift ap_lib if File.directory?(ap_lib)
rescue LoadError
# Guides generation from gems.
gem "actionpack", '>= 3.0'
end
require "rails_guides/generator"
RailsGuides::Generator.new.generate