Module: Uniqueable
- Defined in:
- lib/uniqueable.rb,
lib/uniqueable/version.rb,
lib/uniqueable/validates_uniqueable.rb
Defined Under Namespace
Modules: ClassMethods Classes: UniqueableValidator
Constant Summary collapse
- VERSION =
"0.0.7"
Class Attribute Summary collapse
-
.uniqueable_checks ⇒ Object
Returns the value of attribute uniqueable_checks.
Class Method Summary collapse
Class Attribute Details
.uniqueable_checks ⇒ Object
Returns the value of attribute uniqueable_checks.
7 8 9 |
# File 'lib/uniqueable.rb', line 7 def uniqueable_checks @uniqueable_checks end |
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 |
# File 'lib/uniqueable.rb', line 9 def included(base) base.extend(ClassMethods) @uniqueable_checks ||= {} base.uniqueable_checks = uniqueable_checks end |