lib/cogy/engine.rb in cogy-0.0.3 vs lib/cogy/engine.rb in cogy-0.1.0
- old
+ new
@@ -1,20 +1,14 @@
module Cogy
class Engine < ::Rails::Engine
isolate_namespace Cogy
config.after_initialize do
- if Cogy.bundle_version.nil?
- raise "You must set the :bundle_version setting"
- end
-
- if Cogy.executable_path.nil?
- raise "You must set the :executable_path setting"
- end
-
Cogy.command_load_paths.each do |path|
files = Dir[Rails.root.join(path,"*.rb")]
files.each { |f| Cogy.module_eval(File.read(f)) }
end
+
+ Context.include(Rails.application.routes.url_helpers)
end
end
end