Skip to content

Commit

Permalink
Release v0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed May 5, 2015
1 parent 8af5d11 commit dba5c80
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v0.11.1 (2015-05-05)

* Enhancements
* Add `force_change/3` to force a change into a changeset

* Bug fixes
* `put_change/3`, `put_new_change/3` and `change/2` in `Ecto.Changeset` also verify the model value before storing the change

## v0.11.0 (2015-05-04)

* Enhancements
Expand Down
8 changes: 4 additions & 4 deletions lib/ecto/changeset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ defmodule Ecto.Changeset do

@doc """
Wraps the given model in a changeset or adds changes to a changeset.
Changed attributes will only be added if the change does not have the
same value as the attribute in the model.
Expand All @@ -64,9 +65,9 @@ defmodule Ecto.Changeset do
`changes` to be atoms. `changes` can be a map as well as a keyword list.
When a changeset is passed as the first argument, the changes passed as the
second argument are merged over the changes already in the changeset (with
precedence to the new changes) without checking the model. If `changes` is
not present or is an empty map, this function is a no-op.
second argument are merged over the changes already in the changeset if they
differ from the values in the model. If `changes` is an empty map, this
function is a no-op.
See `cast/4` if you'd prefer to cast and validate external parameters.
Expand Down Expand Up @@ -536,7 +537,6 @@ defmodule Ecto.Changeset do
update_in changeset.changes, &Map.put(&1, key, value)
end


@doc """
Puts a change on the given `key` only if a change with that key doesn't
already exist, also, if the change has the same value as the model, it
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Ecto.Type do
Defines functions and the `Ecto.Type` behaviour for implementing
custom types.
A custom type expects 5 functions to be implemented, all documented
A custom type expects 4 functions to be implemented, all documented
and described below. We also provide two examples of how custom
types can be used in Ecto to augment existing types or providing
your own types.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Ecto.Mixfile do
use Mix.Project

@version "0.11.0"
@version "0.11.1"
@adapters [:pg, :mysql]

def project do
Expand Down

0 comments on commit dba5c80

Please sign in to comment.