Module: Subroutine
- Defined in:
- lib/subroutine.rb,
lib/subroutine/op.rb,
lib/subroutine/auth.rb,
lib/subroutine/fields.rb,
lib/subroutine/failure.rb,
lib/subroutine/outputs.rb,
lib/subroutine/version.rb,
lib/subroutine/type_caster.rb,
lib/subroutine/association_fields.rb,
lib/subroutine/fields/configuration.rb,
lib/subroutine/outputs/configuration.rb,
lib/subroutine/auth/not_authorized_error.rb,
lib/subroutine/fields/mass_assignment_error.rb,
lib/subroutine/outputs/output_not_set_error.rb,
lib/subroutine/outputs/unknown_output_error.rb,
lib/subroutine/association_fields/configuration.rb,
lib/subroutine/outputs/invalid_output_type_error.rb,
lib/subroutine/auth/authorization_not_declared_error.rb,
lib/subroutine/association_fields/component_configuration.rb,
lib/subroutine/association_fields/association_type_mismatch_error.rb
Defined Under Namespace
Modules: AssociationFields, Auth, Fields, Outputs, TypeCaster
Classes: Failure, Op
Constant Summary
collapse
- MAJOR =
4
- MINOR =
1
- PATCH =
4
- PRE =
nil
- VERSION =
[MAJOR, MINOR, PATCH, PRE].compact.join(".")
Class Method Summary
collapse
Class Method Details
.include_defaults_in_params=(bool) ⇒ Object
18
19
20
|
# File 'lib/subroutine.rb', line 18
def self.include_defaults_in_params=(bool)
@include_defaults_in_params = !!bool
end
|
.include_defaults_in_params? ⇒ Boolean
22
23
24
25
26
|
# File 'lib/subroutine.rb', line 22
def self.include_defaults_in_params?
return !!@include_defaults_in_params if defined?(@instance_defaults_in_params)
false
end
|
.inheritable_field_options ⇒ Object
32
33
34
|
# File 'lib/subroutine.rb', line 32
def self.inheritable_field_options
@inheritable_field_options ||= %i[mass_assignable field_reader field_writer groups aka]
end
|
.inheritable_field_options=(opts) ⇒ Object
28
29
30
|
# File 'lib/subroutine.rb', line 28
def self.inheritable_field_options=(opts)
@inheritable_field_options = opts.map(&:to_sym)
end
|