Skip to content

copycopter ignores lambda values for validation after first eval #37

Description

@kwerle
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions