Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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