mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:33:37 +08:00
26b7f8a63b
- 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 |
||
---|---|---|
.. | ||
filter_manager_spec.rb | ||
instance_spec.rb | ||
metadata_spec.rb |