aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarc Remolt <marc.remolt@googlemail.com>2011-05-02 20:09:03 +0200
committerPhilip Arndt <parndt@gmail.com>2011-05-09 10:47:10 +1200
commitf91793599476a8dd4ed5baef54dcaa754689fc4b (patch)
tree31f3df2062c26b85c1cdc12425833517efeac331 /lib
parentfe39fc757aece97ccff6158ecb90c8cb448bb779 (diff)
downloadrefinerycms-blog-f91793599476a8dd4ed5baef54dcaa754689fc4b.tar.gz
refinerycms-blog-f91793599476a8dd4ed5baef54dcaa754689fc4b.tar.bz2
refinerycms-blog-f91793599476a8dd4ed5baef54dcaa754689fc4b.zip
I hate string evals
Diffstat (limited to 'lib')
-rw-r--r--lib/refinerycms-blog.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
index 312ee9b..901535d 100644
--- a/lib/refinerycms-blog.rb
+++ b/lib/refinerycms-blog.rb
@@ -28,17 +28,17 @@ module Refinery
# 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 %{
+ ::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]}"
+ plugin_url[:controller] = "/#{plugin_url[:controller]}"
end
plugin_url
end
- }
+ end
end
end
end if defined?(Rails::Engine)