diff options
author | Joe Sak <joe@joesak.com> | 2011-06-30 12:50:35 -0700 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-06-30 12:50:35 -0700 |
commit | 22d3be709909e9f22be2cf90f52dddf568e35b01 (patch) | |
tree | 0528d1b17c52598acfa66541ed7ac00a2514f9c6 /lib/refinerycms-blog.rb | |
parent | d71252420ec370f4ec944d9d27a7d9c319a4c208 (diff) | |
parent | dbe5e07341b362e79219a269973800be05d824af (diff) | |
download | refinerycms-blog-22d3be709909e9f22be2cf90f52dddf568e35b01.tar.gz refinerycms-blog-22d3be709909e9f22be2cf90f52dddf568e35b01.tar.bz2 refinerycms-blog-22d3be709909e9f22be2cf90f52dddf568e35b01.zip |
Merge pull request #89 from ugisozols/master
Remove old code.
Diffstat (limited to 'lib/refinerycms-blog.rb')
-rw-r--r-- | lib/refinerycms-blog.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb index 407b840..291a968 100644 --- a/lib/refinerycms-blog.rb +++ b/lib/refinerycms-blog.rb @@ -29,22 +29,6 @@ module Refinery :class => BlogPost } end - - # refinery 0.9.8 had a bug that we later found through using this engine. - # the bug was that the plugin urls were not :controller => '/admin/whatever' - if Refinery.version == '0.9.8' - ::Refinery::Plugin.class_eval do - alias_method :old_url, :url - - def url - if (plugin_url = self.old_url).is_a?(Hash) and plugin_url[:controller] =~ %r{^admin} - plugin_url[:controller] = "/#{plugin_url[:controller]}" - end - - plugin_url - end - end - end end end if defined?(Rails::Engine) end |