lib/hat_trick/controller_hooks.rb in hat-trick-0.2.2 vs lib/hat_trick/controller_hooks.rb in hat-trick-0.3.0

- old
+ new

@@ -20,9 +20,12 @@ if respond_to?("#{meth}_hook", :include_private) #{meth}_hook(*args) end common_hook(*args) if respond_to?(:common_hook, :include_private) #{meth}_without_hat_trick(*args) + if hat_trick_wizard.model && hat_trick_wizard.model.respond_to?(:disable_validation_groups) + hat_trick_wizard.model.disable_validation_groups + end end private "#{meth}_with_hat_trick" RUBY_EVAL end end