app/controllers/lookbook/previews_controller.rb in lookbook-0.7.4 vs app/controllers/lookbook/previews_controller.rb in lookbook-0.8.0.beta.0
- old
+ new
@@ -143,10 +143,9 @@
end
def preview_controller
return @preview_controller if @preview_controller.present?
controller_class = Lookbook.config.preview_controller.constantize
- controller_class.class_eval { include Lookbook::PreviewController }
controller = controller_class.new
controller.request = request
controller.response = response
@preview_controller ||= controller
end