discourse/spec/lib/plugin
David Taylor 26b7f8a63b
DEV: Improve add_to_serializer include_* options (#21220)
- Move the old '`define_include_method`' arg to a `respect_plugin_enabled` kwarg

- Introduce an `include_condition` kwarg which can be passed a lambda with inclusion logic. Lambda will be run via `instance_exec` in the context of the serializer instance

This is backwards compatible - old-style invocations will trigger a deprecation message
2023-04-24 12:17:51 +01:00
..
filter_manager_spec.rb DEV: Apply syntax_tree formatting to `spec/*` 2023-01-09 11:49:28 +00:00
instance_spec.rb DEV: Improve add_to_serializer include_* options (#21220) 2023-04-24 12:17:51 +01:00
metadata_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00