Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make raise_model_error_* actually raise

  • Loading branch information...
commit 9c07fa24651945f8f0ee69e034b68f02cca43fb9 1 parent 8b713b0
@jeremyevans authored
View
2  lib/fixture_dependencies/active_record.rb
@@ -22,7 +22,7 @@ def model_save_AR(object)
end
def raise_model_error_AR(message)
- ActiveRecord::RecordNotFound
+ raise ActiveRecord::RecordNotFound, message
end
def reflection_AR(model, attr)
View
2  lib/fixture_dependencies/sequel.rb
@@ -23,7 +23,7 @@ def model_save_S(object)
end
def raise_model_error_S(message)
- Sequel::Error
+ raise Sequel::Error, message
end
def reflection_S(model, attr)
Please sign in to comment.
Something went wrong with that request. Please try again.