Module: Reform::Form::Mongoid
- Defined in:
- lib/reform/form/mongoid.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- UniquenessValidator =
Class.new("::Mongoid::Validatable::UniquenessValidator".constantize) do include Reform::Form::ORM::UniquenessValidator end
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/reform/form/mongoid.rb', line 4 def self.included(base) base.class_eval do register_feature Reform::Form::Mongoid include Reform::Form::ActiveModel include Reform::Form::ORM extend ClassMethods end end |