Skip to content

Commit

Permalink
Replace calls to Validations::Context#validation_context.
Browse files Browse the repository at this point in the history
Replaced with calls to Validations::Context.in_context.
  • Loading branch information
emmanuel committed May 31, 2011
1 parent 2f01354 commit c746910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dm-validations.rb
Expand Up @@ -66,13 +66,13 @@ def self.included(model)
#
chainable do
def save(context = default_validation_context)
validation_context(context) { super() }
Validations::Context.in_context(context) { super() }
end
end

chainable do
def update(attributes = {}, context = default_validation_context)
validation_context(context) { super(attributes) }
Validations::Context.in_context(context) { super(attributes) }
end
end

Expand Down

0 comments on commit c746910

Please sign in to comment.