Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 233 lines (119 sloc) 6.52 kb
db65421 @vijaydev changelog updates for Rails 4 [ci skip]
vijaydev authored
1 ## Rails 4.0.0 (unreleased) ##
2
ab11a27 change AMS::JSON.include_root_in_json default value to false
Francesco Rodriguez authored
3 * Changed `AM::Serializers::JSON.include_root_in_json' default value to false.
4 Now, AM Serializers and AR objects have the same default behaviour. Fixes #6578.
5
6 class User < ActiveRecord::Base; end
7
8 class Person
9 include ActiveModel::Model
10 include ActiveModel::AttributeMethods
11 include ActiveModel::Serializers::JSON
12
13 attr_accessor :name, :age
14
15 def attributes
16 instance_values
17 end
18 end
19
20 user.as_json
21 => {"id"=>1, "name"=>"Konata Izumi", "age"=>16, "awesome"=>true}
22 # root is not included
23
24 person.as_json
25 => {"name"=>"Francesco", "age"=>22}
26 # root is not included
27
28 *Francesco Rodriguez*
29
b3ccd7b @purcell Don't enable validations when passing false hash values to ActiveMode…
purcell authored
30 * Passing false hash values to `validates` will no longer enable the corresponding validators *Steve Purcell*
31
3a749a9 @bcardarella Reordered changelog entry
bcardarella authored
32 * `ConfirmationValidator` error messages will attach to `:#{attribute}_confirmation` instead of `attribute` *Brian Cardarella*
33
3b822e9 @guilleiguaran Add ActiveModel::Model, a mixin to make Ruby objects to work with AP …
guilleiguaran authored
34 * Added ActiveModel::Model, a mixin to make Ruby objects work with AP out of box *Guillermo Iguaran*
35
534dc4c @bogdan AM::Errors: allow :full_messages parameter for #as_json
bogdan authored
36 * `AM::Errors#to_json`: support `:full_messages` parameter *Bogdan Gusiev*
37
a17d047 @josevalim Trim down Active Model API by removing valid? and errors.full_messages
josevalim authored
38 * Trim down Active Model API by removing `valid?` and `errors.full_messages` *José Valim*
39
bc7c0b5 @mrbrdo prevent users from unknowingly using bad regexps that can compromise …
mrbrdo authored
40 * 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.
41
42 ## Rails 3.2.6 (Jun 12, 2012) ##
43
44 * No changes.
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
45
3449b75 @rafaelfranca Sync CHANGLOG with the 3-2-stable branch
rafaelfranca authored
46 ## Rails 3.2.5 (Jun 1, 2012) ##
47
48 * No changes.
49
50
51 ## Rails 3.2.4 (May 31, 2012) ##
52
53 * No changes.
54
55
56 ## Rails 3.2.3 (March 30, 2012) ##
57
58 * No changes.
59
60
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
61 ## Rails 3.2.2 (March 1, 2012) ##
62
63 * No changes.
64
65
152a393 @pacoguzman Update changelogs with rails 3.0-stable branch info
pacoguzman authored
66 ## Rails 3.2.1 (January 26, 2012) ##
67
68 * No changes.
69
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
70
6d426b1 @claudiob Add release date of Rails 3.2.0 to documentation
claudiob authored
71 ## Rails 3.2.0 (January 20, 2012) ##
696d01f @josevalim Add docs to serializers. Update CHANGELOGs.
josevalim authored
72
8df787d @jonleighton Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`
jonleighton authored
73 * Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`, because this only existed to
74 support methods like `set_table_name` in Active Record, which are themselves being deprecated.
75
76 *Jon Leighton*
77
696d01f @josevalim Add docs to serializers. Update CHANGELOGs.
josevalim authored
78 * Add ActiveModel::Errors#added? to check if a specific error has been added *Martin Svalin*
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
79
80 * Add ability to define strict validation(with :strict => true option) that always raises exception when fails *Bogdan Gusiev*
81
82 * Deprecate "Model.model_name.partial_path" in favor of "model.to_partial_path" *Grant Hutchins, Peter Jaros*
83
84 * Provide mass_assignment_sanitizer as an easy API to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior *Bogdan Gusiev*
85
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
86
152a393 @pacoguzman Update changelogs with rails 3.0-stable branch info
pacoguzman authored
87 ## Rails 3.1.3 (November 20, 2011) ##
88
89 * No changes
90
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
91
152a393 @pacoguzman Update changelogs with rails 3.0-stable branch info
pacoguzman authored
92 ## Rails 3.1.2 (November 18, 2011) ##
93
94 * No changes
95
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
96
152a393 @pacoguzman Update changelogs with rails 3.0-stable branch info
pacoguzman authored
97 ## Rails 3.1.1 (October 7, 2011) ##
98
99 * Remove hard dependency on bcrypt-ruby to avoid make ActiveModel dependent on a binary library.
100 You must add the gem explicitly to your Gemfile if you want use ActiveModel::SecurePassword:
101
102 gem 'bcrypt-ruby', '~> 3.0.0'
103
104 See GH #2687. *Guillermo Iguaran*
105
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
106
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
107 ## Rails 3.1.0 (August 30, 2011) ##
108
109 * Alternate I18n namespace lookup is no longer supported.
110 Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*
111
112 * attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*
113
114 * Add support for proc or lambda as an option for InclusionValidator,
115 ExclusionValidator, and FormatValidator *Prem Sichanugrist*
116
117 You can now supply Proc, lambda, or anything that respond to #call in those
118 validations, and it will be called with current record as an argument.
119 That given proc or lambda must returns an object which respond to #include? for
120 InclusionValidator and ExclusionValidator, and returns a regular expression
121 object for FormatValidator.
122
123 * Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*
124
125 * ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*
126
127 * Add support for selectively enabling/disabling observers *Myron Marston*
128
129
05c6caf @claudiob Add release dates to documentation
claudiob authored
130 ## Rails 3.0.12 (March 1, 2012) ##
152a393 @pacoguzman Update changelogs with rails 3.0-stable branch info
pacoguzman authored
131
132 * No changes.
133
134
135 ## Rails 3.0.11 (November 18, 2011) ##
136
137 * No changes.
138
139
140 ## Rails 3.0.10 (August 16, 2011) ##
141
142 * No changes.
143
144
145 ## Rails 3.0.9 (June 16, 2011) ##
146
147 * No changes.
148
149
150 ## Rails 3.0.8 (June 7, 2011) ##
151
152 * No changes.
153
154
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
155 ## Rails 3.0.7 (April 18, 2011) ##
156
157 * No changes.
158
159
152a393 @pacoguzman Update changelogs with rails 3.0-stable branch info
pacoguzman authored
160 ## Rails 3.0.6 (April 5, 2011) ##
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
161
162 * Fix when database column name has some symbolic characters (e.g. Oracle CASE# VARCHAR2(20)) #5818 #6850 *Robert Pankowecki, Santiago Pastorino*
163
164 * Fix length validation for fixnums #6556 *Andriy Tyurnikov*
165
166 * Fix i18n key collision with namespaced models #6448 *yves.senn*
167
168
169 ## Rails 3.0.5 (February 26, 2011) ##
170
171 * No changes.
172
173
174 ## Rails 3.0.4 (February 8, 2011) ##
175
176 * No changes.
177
178
179 ## Rails 3.0.3 (November 16, 2010) ##
180
181 * No changes.
182
183
184 ## Rails 3.0.2 (November 15, 2010) ##
185
186 * No changes
187
188
189 ## Rails 3.0.1 (October 15, 2010) ##
190
191 * No Changes, just a version bump.
192
193
194 ## Rails 3.0.0 (August 29, 2010) ##
195
196 * Added ActiveModel::MassAssignmentSecurity *Eric Chapweske, Josh Kalderimis*
197
198 * JSON supports a custom root option: to_json(:root => 'custom') #4515 *Jatinder Singh*
199
200 * #new_record? and #destroyed? were removed from ActiveModel::Lint. Use
201 persisted? instead. A model is persisted if it's not a new_record? and it was
202 not destroyed? *MG*
203
204 * Added validations reflection in ActiveModel::Validations *JV*
205
206 Model.validators
207 Model.validators_on(:field)
208
209 * #to_key was added to ActiveModel::Lint so we can generate DOM IDs for
210 AMo objects with composite keys *MG*
211
212 * ActiveModel::Observer#add_observer!
213
214 It has a custom hook to define after_find that should really be in a
215 ActiveRecord::Observer subclass:
216
217 def add_observer!(klass)
218 klass.add_observer(self)
219 klass.class_eval 'def after_find() end' unless klass.respond_to?(:after_find)
220 end
221
222 * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 *DHH*
223
224 * Add validates_format_of :without => /regexp/ option. #430 *Elliot Winkler, Peer Allan*
225
226 Example :
227
228 validates_format_of :subdomain, :without => /www|admin|mail/
229
230 * Introduce validates_with to encapsulate attribute validations in a class. #2630 *Jeff Dean*
231
232 * Extracted from Active Record and Active Resource.
Something went wrong with that request. Please try again.