Created
January 17, 2010 19:20
-
-
Save andrehjr/279524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install hook code here | |
puts "Rails.root.nil? => #{Rails.root.nil?}" | |
puts "Rails.env #{Rails.env}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated a simple plugin from the generator, and added some code in install.rb | |
# Rails.root doesn't seem to be avaliable... some plugins use it... so they are broken by this. | |
#to reproduce, just generate a simple plugin from the generator or just install it from my example below. | |
$ script/plugin install git://github.com/andrehjr/more_or_less.git --force | |
Returns: | |
# Rails.root.nil? => true | |
# Rails.env development |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment