Skip to content
Newer
Older
100644 37 lines (23 sloc) 1.09 KB
22f3398 @zilkey Introduce validates_with to encapsulate attribute validations in a cl…
zilkey authored
1 *Edge*
2
d2a4885 @wycats Updated changelogs
wycats authored
3 * #new_record? and #destroyed? were removed from ActiveModel::Lint. Use
4 persisted? instead. A model is persisted if it's not a new_record? and it was
5 not destroyed? [MG]
6
7 * Added validations reflection in ActiveModel::Validations [JV]
8
9 Model.validators
10 Model.validators_on(:field)
11
12 * #to_key was added to ActiveModel::Lint so we can generate DOM IDs for
13 AMo objects with composite keys [MG]
14
9fd9e5d @fxn fixes doc generation
fxn authored
15 * ActiveModel::Observer#add_observer!
16
17 It has a custom hook to define after_find that should really be in a
18 ActiveRecord::Observer subclass:
19
20 def add_observer!(klass)
21 klass.add_observer(self)
22 klass.class_eval 'def after_find() end' unless
23 klass.respond_to?(:after_find)
24 end
25
532b116 @dhh Change the ActiveModel::Base.include_root_in_json default to true for…
dhh authored
26 * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 [DHH]
27
cccb0e6 @mcmire Add validates_format_of :without => /regexp/ option [Elliot Winkler, …
mcmire authored
28 * Add validates_format_of :without => /regexp/ option. #430 [Elliot Winkler, Peer Allan]
29
30 Example :
31
32 validates_format_of :subdomain, :without => /www|admin|mail/
33
22f3398 @zilkey Introduce validates_with to encapsulate attribute validations in a cl…
zilkey authored
34 * Introduce validates_with to encapsulate attribute validations in a class. #2630 [Jeff Dean]
35
36 * Extracted from Active Record and Active Resource.
Something went wrong with that request. Please try again.