Module: ActsAsMultipartForm::MultipartFormInModel
- Defined in:
- lib/acts_as_multipart_form/multipart_form_in_model.rb
Overview
Specify this to let the model know to expect multipart_form controller actions Allows the model to run conditional validations by giving access to methods with the form: multipart_form_name_multipart_controller_action.
It includes support for multiple forms on a single controller by passing in an array of form symbols or a single symbol.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
10 11 12 |
# File 'lib/acts_as_multipart_form/multipart_form_in_model.rb', line 10 def self.included(base) base.extend ClassMethods end |