README.md in hanami-model-1.3.2 vs README.md in hanami-model-1.3.3

- old
+ new

@@ -13,12 +13,11 @@ Like all the other Hanami components, it can be used as a standalone framework or within a full Hanami application. ## Status [![Gem Version](https://badge.fury.io/rb/hanami-model.svg)](https://badge.fury.io/rb/hanami-model) -[![TravisCI](https://travis-ci.org/hanami/model.svg?branch=master)](https://travis-ci.org/hanami/model) -[![CircleCI](https://circleci.com/gh/hanami/model/tree/master.svg?style=svg)](https://circleci.com/gh/hanami/model/tree/master) +[![CI](https://github.com/hanami/model/workflows/ci/badge.svg?branch=master)](https://github.com/hanami/model/actions?query=workflow%3Aci+branch%3Amaster) [![Test Coverage](https://codecov.io/gh/hanami/model/branch/master/graph/badge.svg)](https://codecov.io/gh/hanami/model) [![Depfu](https://badges.depfu.com/badges/3a5d3f9e72895493bb6f39402ac4f129/overview.svg)](https://depfu.com/github/hanami/model?project=Bundler) [![Inline Docs](http://inch-ci.org/github/hanami/model.svg)](http://inch-ci.org/github/hanami/model) ## Contact @@ -54,10 +53,11 @@ This class provides a DSL to configure the connection. ```ruby require 'hanami/model' +require 'hanami/model/sql' class User < Hanami::Entity end class UserRepository < Hanami::Repository @@ -190,10 +190,12 @@ ### Mapping Hanami::Model can **_automap_** columns from relations and entities attributes. +When using a `sql` adapter, you must require `hanami/model/sql` before `Hanami::Model.load!` is called so the relations are loaded correctly. + However, there are cases where columns and attribute names do not match (mainly **legacy databases**). ```ruby require 'hanami/model' @@ -232,10 +234,11 @@ If an entity has the following accessors: `:created_at` and `:updated_at`, they will be automatically updated when the entity is persisted. ```ruby require 'hanami/model' +require 'hanami/model/sql' class User < Hanami::Entity end class UserRepository < Hanami::Repository @@ -289,8 +292,8 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## Copyright -Copyright © 2014-2017 Luca Guidi – Released under MIT License +Copyright © 2014-2021 Luca Guidi – Released under MIT License This project was formerly known as Lotus (`lotus-model`).