mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:23:44 +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 |
||
---|---|---|
.. | ||
app | ||
assets | ||
config | ||
db/migrate | ||
jobs/regular | ||
lib | ||
spec | ||
test/javascripts | ||
plugin.rb |