Permalink
Browse files

Made it work for the latest stable

  • Loading branch information...
1 parent b8b66e5 commit 0486f934513fc25a68facc688abf04b4136d6f81 Hartog C. de Mik committed with Sven Fuchs Mar 26, 2010
Showing with 4 additions and 6 deletions.
  1. +2 −3 init.rb
  2. +2 −3 lib/drops.rb
View
@@ -1,11 +1,10 @@
controller_path = File.join(directory, 'lib', 'app', 'controllers')
$LOAD_PATH << controller_path
-Dependencies.load_paths << controller_path
+ActiveSupport::Dependencies.load_paths << controller_path
config.controller_paths << controller_path
require File.join(lib_path, 'drops')
require File.join(lib_path, 'url_filters')
-require File.join(lib_path, 'plugin')
config.to_prepare do
require_dependency 'tag_cloud'
@@ -17,4 +16,4 @@
# TagCloud.order = :alpha
# TagCloud.method = :linear
# TagCloud.method = lambda { |number| Math.log10 number + 2 }
-end
+end
View
@@ -12,9 +12,8 @@ def count
def to_s
source.name
end
- private
- def gsub
- 'kekse'
+ def gsub(one, two)
+ self.to_s.gsub(one, two)
end
end

0 comments on commit 0486f93

Please sign in to comment.