lib/rapporteur/responder.rb in rapporteur-2.0.1 vs lib/rapporteur/responder.rb in rapporteur-2.1.0

- old
+ new

@@ -21,10 +21,10 @@ if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 1 def display_errors controller.render format => {errors: resource.errors}, status: :internal_server_error end - elsif Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 2 + else def display_errors controller.render format => resource_errors, status: :internal_server_error end end end