Skip to content

Instantly share code, notes, and snippets.

@andrehjr
Created January 17, 2010 19:20
Show Gist options
  • Save andrehjr/279524 to your computer and use it in GitHub Desktop.
Save andrehjr/279524 to your computer and use it in GitHub Desktop.
# Install hook code here
puts "Rails.root.nil? => #{Rails.root.nil?}"
puts "Rails.env #{Rails.env}"
# 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