lib/resque_template/server.rb in resque_template-0.0.1 vs lib/resque_template/server.rb in resque_template-0.0.1.1
- old
+ new
@@ -1,19 +1,10 @@
require 'resque_template'
require 'resque/server'
module ResqueTemplate
module Server
- path = File.dirname(File.expand_path(__FILE__))
- # Set new public dir
- if respond_to? :public_folder
- set :public_folder, "#{path}/server/public"
- else
- set :public, "#{path}/server/public"
- end
-
+
end
end
-
-Resque::Server.class_eval do
- include ResqueTemplate::Server
-end
+path = File.dirname(File.expand_path(__FILE__))
+Resque::Server.public_folder = "#{path}/server/public"
\ No newline at end of file