Skip to content

Commit

Permalink
Remove undocumented save_without_validation!
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed May 11, 2010
1 parent 475d1d1 commit 88b4a8f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions activerecord/lib/active_record/validations.rb
Expand Up @@ -40,10 +40,6 @@ def save(options={})
perform_validations(options) ? super : false
end

def save_without_validation!
save!(:validate => false)
end

# Attempts to save the record just like Base#save but will raise a RecordInvalid exception instead of returning false
# if the record is not valid.
def save!(options={})
Expand Down
6 changes: 0 additions & 6 deletions activerecord/test/cases/validations_test.rb
Expand Up @@ -152,12 +152,6 @@ def test_deprecated_create_without_validation
end
end

def test_create_without_validation_bang
count = WrongReply.count
assert_nothing_raised { WrongReply.new.save_without_validation! }
assert count+1, WrongReply.count
end

def test_validates_acceptance_of_with_non_existant_table
Object.const_set :IncorporealModel, Class.new(ActiveRecord::Base)

Expand Down

0 comments on commit 88b4a8f

Please sign in to comment.