Module: ActiveModel::FormObject

Defined in:
lib/active_model/form_object.rb,
lib/active_model/form_object/railtie.rb,
lib/active_model/form_object/strong_parameters.rb,
lib/active_model/form_object/validators/nested_validator.rb,
lib/active_model/form_object/validators/permitted_params_validator.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, StrongParameters, Validators Classes: Railtie

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/active_model/form_object.rb', line 8

def self.included klass
  klass.class_eval do
    extend Naming
    include Conversion
    include Validations
    include Validations::Callbacks
    include Validators
    include StrongParameters
    extend ClassMethods
    include InstanceMethods
  end
end