diff --git a/bin/run b/bin/run index 4b8a5e6..b0d88ac 100755 --- a/bin/run +++ b/bin/run @@ -1,7 +1,6 @@ #!/usr/bin/env ruby -require_relative '../lib/garden.rb' -require_relative '../lib/plant.rb' +require_relative '../config/environment.rb' lawn = Garden.new(name: 'Front Lawn') @@ -11,4 +10,4 @@ basil.garden = lawn cucumber = Plant.new(name: 'Cucumber') cucumber.garden = lawn -p lawn.plants \ No newline at end of file +pp lawn.plants \ No newline at end of file diff --git a/config/environment.rb b/config/environment.rb index 068196f..c05cc29 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,4 +1,5 @@ -# Require statements should go here. +require_relative '../lib/garden.rb' +require_relative '../lib/plant.rb' # Then any files that need to load the files required here can # require THIS file, environment.rb, and get access to everything \ No newline at end of file