Module: Core::Io::Base::JsonFormattingBehaviour::Input
- Defined in:
- app/api/core/io/base/json_formatting_behaviour/input.rb
Defined Under Namespace
Modules: AssociationHandling
Classes: ReadOnlyAttribute
Constant Summary
collapse
- NESTED_SUPPORTING_RELATIONSHIPS =
%i[belongs_to has_one].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.extended(base) ⇒ Object
17
18
19
20
21
22
|
# File 'app/api/core/io/base/json_formatting_behaviour/input.rb', line 17
def self.extended(base)
base.class_eval do
class_attribute :model_for_input, instance_writer: false
extend AssociationHandling
end
end
|
Instance Method Details
24
25
26
|
# File 'app/api/core/io/base/json_formatting_behaviour/input.rb', line 24
def set_model_for_input(model)
self.model_for_input = model
end
|