Skip to content

copycopter ignores lambda values for validation after first eval #37

Open
kwerle opened this Issue Oct 18, 2012 · 0 comments

1 participant

@kwerle
kwerle commented Oct 18, 2012
class Driver
  validates :age, numericality =>
    {
      :greater_than_or_equal_to => lambda {|o| o.in_europe? ? 21 : 18 }
    }
end

Will get the first age and cache it, ignoring the lambda forever after.
The validation works correctly - just not the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.