Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Add support of Proc value to numeicality validator #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support of Proc value to numeicality validator #65

wants to merge 1 commit into from

Conversation

mibon
Copy link

@mibon mibon commented Aug 29, 2013

Hi

I added support of Proc values to numerical validators(gte, gt, lte, lt etc.)
Usage example
validates_numericliaty_of :some_val, gt: Proc.new { |s| s.another_value }
where s is a current resource

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant