This adds support for configuring changeset commands using command_options and command_plugins class settings.
Here's what will be possible with this feature:
module TimestampPlugin
def self.apply(klass, options)
klass.command_plugins :timestamps, timestamps: options
end
end
ROM::Plugins.register(:timestamp, TimestampPlugin, type: :changeset)
class CreateChangeset < ROM::Changeset::Create
use :timestamps, [:created_at]
end
This adds support for configuring changeset commands using
command_options
andcommand_plugins
class settings.Here's what will be possible with this feature: