Module: Formalism::ModelForms
- Defined in:
- lib/formalism/model_forms.rb,
lib/formalism/model_forms/find.rb,
lib/formalism/model_forms/list.rb,
lib/formalism/model_forms/move.rb,
lib/formalism/model_forms/_base.rb,
lib/formalism/model_forms/create.rb,
lib/formalism/model_forms/delete.rb,
lib/formalism/model_forms/select.rb,
lib/formalism/model_forms/update.rb,
lib/formalism/model_forms/version.rb,
lib/formalism/model_forms/find_or_create.rb,
lib/formalism/model_forms/conditions/_base.rb
Overview
Module for model forms
Defined Under Namespace
Modules: Base, Conditions, Create, Delete, Find, FindOrCreate, List, Move, Select, Update
Constant Summary collapse
- VERSION =
'0.10.1'
Class Method Summary collapse
Class Method Details
.define_for_project(project_namespace, forms_namespace: project_namespace::Forms, models_namespace: (project_namespace::Models if project_namespace.const_defined?(:Models))) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/formalism/model_forms.rb', line 12 def define_for_project( project_namespace, forms_namespace: project_namespace::Forms, models_namespace: (project_namespace::Models if project_namespace.const_defined?(:Models)) ) forms_namespace.const_set :Model, Module.new define_model_base_form forms_namespace, models_namespace define_other_model_forms forms_namespace end |