Method: Hanami::Model::Configuration#register_entity

Defined in:
lib/hanami/model/configuration.rb

#register_entity(plural, singular, klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0



102
103
104
105
# File 'lib/hanami/model/configuration.rb', line 102

def register_entity(plural, singular, klass)
  @entities[plural]   = klass
  @entities[singular] = klass
end