lib/deface/action_view_extensions.rb in deface-0.5.7 vs lib/deface/action_view_extensions.rb in deface-0.6.0

- old
+ new

@@ -5,7 +5,10 @@ source = Deface::Override.apply(source, details) rails_initialize(source, identifier, handler, details) end end + #fix for Rails 3.1 not setting virutal_path anymore (BOO!) -ActionView::Resolver::Path.class_eval { alias_method :virtual, :to_s } +if defined?(ActionView::Resolver::Path) + ActionView::Resolver::Path.class_eval { alias_method :virtual, :to_s } +end