Sha256: e6eb4befa9d7735bae3e8cd44651e4d22945177022bafdd16ffe040ed462f5cb
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
module ROM module EnvironmentPlugins # Automatically registers relations, mappers and commands as they are defined # # For now this plugin is always enabled # # @api public module AutoRegistration # @api private def self.apply(environment) ROM::Relation.on(:inherited) { |relation| environment.register_relation(relation) } ROM::Command.on(:inherited) { |command| environment.register_command(command) } ROM::Mapper.on(:inherited) { |mapper| environment.register_mapper(mapper) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-0.9.0.rc1 | lib/rom/environment_plugins/auto_registration.rb |
rom-0.9.0.beta1 | lib/rom/environment_plugins/auto_registration.rb |