From 00b7b36516d1d07300870029ad5190f06122a493 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 10 Oct 2012 19:56:35 +0200 Subject: first steps at reducing core --- core/lib/leap_web_core.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/lib/leap_web_core.rb') diff --git a/core/lib/leap_web_core.rb b/core/lib/leap_web_core.rb index 16004f8..5b53978 100644 --- a/core/lib/leap_web_core.rb +++ b/core/lib/leap_web_core.rb @@ -1,5 +1,12 @@ +require "rails/all" + +require "couchrest" +require "couchrest_model" +require "couchrest_session_store" + +require "json" + require "extensions/testing" -require "leap_web_core/dependencies" require "leap_web_core/engine" module LeapWebCore -- cgit v1.2.3 From add8d015c87a00626b739080bd75c7e7aeb9c1df Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 11 Oct 2012 10:22:34 +0200 Subject: moved core dependency into */Gemfile with :path In order to get the rails generators and the like to work properly in engines we need to require all the dependencies in the engine.rb file. Since I want to keep that list of engines in a centralized place we still need core and we need to require it from the other engines. We don't want to require the core gem to be installed so I added it with :path option to the Gemfile. --- core/lib/leap_web_core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/lib/leap_web_core.rb') diff --git a/core/lib/leap_web_core.rb b/core/lib/leap_web_core.rb index 5b53978..8826880 100644 --- a/core/lib/leap_web_core.rb +++ b/core/lib/leap_web_core.rb @@ -1,4 +1,4 @@ -require "rails/all" +require "rails" require "couchrest" require "couchrest_model" -- cgit v1.2.3