lib/mystique.rb in mystique-0.8.0 vs lib/mystique.rb in mystique-0.9.1
- old
+ new
@@ -30,13 +30,9 @@
end
end
end
def presenter_class_for(object, with)
- if with.respond_to?(:for)
- with
- else
- StringPlus.constantize("#{with || object.class}Presenter")
- end
+ with || StringPlus.constantize("#{object.class}Presenter")
end
private :presenter_class_for
end