rails/init.rb in optionsful-0.2.3 vs rails/init.rb in optionsful-0.3.0
- old
+ new
@@ -1,9 +1,5 @@
-# Adding Optionsful to the Rack middleware stack:
-ActionController::Dispatcher.middleware.use Baurets::Optionsful::Server
-puts "Gem.searcher.find('optionsful').full_gem_path = #{Gem.searcher.find('optionsful').full_gem_path}"
-Dir["#{Gem.searcher.find('optionsful').full_gem_path}/**/tasks/*.rake"].each do |ext|
- puts "Loading: #{ext}"
- load ext
- end
+unless defined? Rails
+ puts "This requires Rails 3. Please look for 'optionsful2'."
+end
\ No newline at end of file