Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed 'pp' debug lines.

  • Loading branch information...
commit 5479daf9acfea4b2e40bce5460cb06c584068f95 1 parent 39c44f0
Blake Gentry authored
2  remarkable_datamapper/lib/remarkable_datamapper/base.rb
View
@@ -181,8 +181,6 @@ def assert_bad_value(model, attribute, value, error_message_to_expect=:invalid)
def error_message_from_model(model, attribute, message) #:nodoc:
if message.is_a? Symbol
# TODO: No Internationalization yet.
- # TODO: remove debug line
- pp attribute
message = ::DataMapper::Validate::ValidationErrors.default_error_message(message, attribute, '12345')
if message =~ /12345/
4 remarkable_datamapper/lib/remarkable_datamapper/matchers/validate_is_unique_matcher.rb
View
@@ -39,12 +39,8 @@ def find_first_object?
message << " which is different from the subject record (the object being validated is the same as the one in the database)"
conditions << {::DataMapper::Query::Operator.new(subject_class.key.first.name, :not) => @subject.send(key)}
- pp conditions
end
- require 'pp'
- #pp conditions
-
return true if @existing = subject_class.first(conditions)
raise ScriptError, "could not find a #{subject_class} record in the database" + message
end
Please sign in to comment.
Something went wrong with that request. Please try again.