Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 105 lines (62 sloc) 3.779 kB
db65421 @vijaydev changelog updates for Rails 4 [ci skip]
vijaydev authored
1 ## Rails 4.0.0 (unreleased) ##
2
cf7ab60 @rmascarenhas Reset attributes should not report changes.
rmascarenhas authored
3 * `[attribute]_changed?` now returns `false` after a call to `reset_[attribute]!`
4
5 *Renato Mascarenhas*
6
ec17f0d @rafaelfranca Add CHANGELOG entries for the observes extraction
rafaelfranca authored
7 * Observers was extracted from Active Model as `rails-observers` gem.
8
9 *Rafael Mendonça França*
10
9504b44 @steveklabnik Specify type of singular association during serialization
steveklabnik authored
11 * Specify type of singular association during serialization *Steve Klabnik*
12
ea76e9a @xHire Length validation handles correctly nil. Fix #7180
xHire authored
13 * Fixed length validator to correctly handle nil values. Fixes #7180.
14
15 *Michal Zima*
16
22598ee @senny cleanup, removed dispensable `require` statements from `ActiveModel`
senny authored
17 * Removed dispensable `require` statements. Make sure to require `active_model` before requiring
18 individual parts of the framework.
19
20 *Yves Senn*
21
df9f9b7 @carlosantoniodasilva Convert changelogs to 1.9 hash style and fix some formatting [ci skip]
carlosantoniodasilva authored
22 * Use BCrypt's `MIN_COST` in the test environment for speedier tests when using `has_secure_pasword`.
06faa6d @trevorturk Use BCrypt's MIN_COST in the test environment for speedier tests
trevorturk authored
23
24 *Brian Cardarella + Jeremy Kemper + Trevor Turk*
25
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
26 * Add `ActiveModel::ForbiddenAttributesProtection`, a simple module to
27 protect attributes from mass assignment when non-permitted attributes are passed.
28
29 *DHH + Guillermo Iguaran*
30
31 * `ActiveModel::MassAssignmentSecurity` has been extracted from Active Model and the
32 `protected_attributes` gem should be added to Gemfile in order to use
33 `attr_accessible` and `attr_protected` macros in your models.
34
35 *Guillermo Iguaran*
36
0180e09 @carlosantoniodasilva Update Active Model xml serialization test to reflect a change in bui…
carlosantoniodasilva authored
37 * Due to a change in builder, nil values and empty strings now generates
38 closed tags, so instead of this:
39
40 <pseudonyms nil=\"true\"></pseudonyms>
41
42 It generates this:
43
44 <pseudonyms nil=\"true\"/>
45
46 *Carlos Antonio da Silva*
47
2f3eb48 @sobrinho Accept a symbol for `:in` option on inclusion and exclusion validators
sobrinho authored
48 * Changed inclusion and exclusion validators to accept a symbol for `:in` option.
49
50 This allows to use dynamic inclusion/exclusion values using methods, besides the current lambda/proc support.
51
52 *Gabriel Sobrinho*
53
cfd7f4e @rafaelfranca Merge pull request #7024 from bogdan/strict_validation_custom_exception
rafaelfranca authored
54 * `AM::Validation#validates` ability to pass custom exception to `:strict` option.
55
56 *Bogdan Gusiev*
57
58 * Changed `ActiveModel::Serializers::Xml::Serializer#add_associations` to by default
59 propagate `:skip_types, :dasherize, :camelize` keys to included associations.
60 It can be overriden on each association by explicitly specifying the option on one
61 or more associations
62
63 *Anthony Alberto*
78f5874 @anthonyalberto Following the false issue reporting I did here : https://github.com/r…
anthonyalberto authored
64
ab11a27 change AMS::JSON.include_root_in_json default value to false
Francesco Rodriguez authored
65 * Changed `AM::Serializers::JSON.include_root_in_json' default value to false.
66 Now, AM Serializers and AR objects have the same default behaviour. Fixes #6578.
67
68 class User < ActiveRecord::Base; end
69
70 class Person
71 include ActiveModel::Model
72 include ActiveModel::AttributeMethods
73 include ActiveModel::Serializers::JSON
74
75 attr_accessor :name, :age
76
77 def attributes
78 instance_values
79 end
80 end
81
82 user.as_json
83 => {"id"=>1, "name"=>"Konata Izumi", "age"=>16, "awesome"=>true}
84 # root is not included
85
86 person.as_json
87 => {"name"=>"Francesco", "age"=>22}
88 # root is not included
89
90 *Francesco Rodriguez*
91
b3ccd7b @purcell Don't enable validations when passing false hash values to ActiveMode…
purcell authored
92 * Passing false hash values to `validates` will no longer enable the corresponding validators *Steve Purcell*
93
3a749a9 @bcardarella Reordered changelog entry
bcardarella authored
94 * `ConfirmationValidator` error messages will attach to `:#{attribute}_confirmation` instead of `attribute` *Brian Cardarella*
95
3b822e9 @guilleiguaran Add ActiveModel::Model, a mixin to make Ruby objects to work with AP …
guilleiguaran authored
96 * Added ActiveModel::Model, a mixin to make Ruby objects work with AP out of box *Guillermo Iguaran*
97
534dc4c @bogdan AM::Errors: allow :full_messages parameter for #as_json
bogdan authored
98 * `AM::Errors#to_json`: support `:full_messages` parameter *Bogdan Gusiev*
99
a17d047 @josevalim Trim down Active Model API by removing valid? and errors.full_messages
josevalim authored
100 * Trim down Active Model API by removing `valid?` and `errors.full_messages` *José Valim*
101
a774354 @mrbrdo add credit to committer of pull request #6569
mrbrdo authored
102 * When `^` or `$` are used in the regular expression provided to `validates_format_of` and the :multiline option is not set to true, an exception will be raised. This is to prevent security vulnerabilities when using `validates_format_of`. The problem is described in detail in the Rails security guide *Jan Berdajs + Egor Homakov*
bc7c0b5 @mrbrdo prevent users from unknowingly using bad regexps that can compromise …
mrbrdo authored
103
810a50d @fxn CHANGELOGs are now per branch
fxn authored
104 Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/activemodel/CHANGELOG.md) for previous changes.
Something went wrong with that request. Please try again.