- Require dm-core ~> 1.2.
- Replaced
DataMapper::Resource::State::ReadOnly
withDataMapper::Is::ReadOnly::State
. - Replaced
DataMapper::ReadOnlyError
withDataMapper::Is::ReadOnly::Error
.
- Require dm-core ~> 1.0.
- Added
DataMapper::Resource::State::ReadOnly
:- Inherits from the
Clean
state. - Raises
DataMapper::ReadOnlyError
exceptions whenset
ordelete
are called.
- Inherits from the
- Fixed a bug where read-only resources with relationships were not being loaded.
- Override
saved?
inDataMapper::Resource
to always returntrue
, so that methods such assave_self
will also returntrue
. This allows read-only models to be used in relationships with non-read-only models.
- Initial release.
- Ignores auto-migrations on read-only Models.
- Ignores auto-upgrades on read-only Models.
- Puts all resources of a read-only Model into the Immutable state.
- Supports the
:migrations
and:mutable
options for selectively enabling migrations or mutability.