discourse/spec/lib/plugin
David Taylor 4895e76ef7
DEV: Improve add_to_serializer include_* options (#21073)
- 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

Update chat and poll plugins to new pattern
2023-04-24 15:47:28 +10: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 (#21073) 2023-04-24 15:47:28 +10:00
metadata_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00