Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 111 lines (59 sloc) 3.446 kb
43486e0 @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
1 ## Rails 3.1.1 (October 7, 2011) ##
2
3 * Remove hard dependency on bcrypt-ruby to avoid make ActiveModel dependent on a binary library.
4 You must add the gem explicitly to your Gemfile if you want use ActiveModel::SecurePassword:
5
6 gem 'bcrypt-ruby', '~> 3.0.0'
7
8 See GH #2687. *Guillermo Iguaran*
9
10 ## Rails 3.1.0 (August 30, 2011) ##
11
12 * Alternate I18n namespace lookup is no longer supported.
13 Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*
14
15 * attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*
16
17 * Add support for proc or lambda as an option for InclusionValidator,
18 ExclusionValidator, and FormatValidator *Prem Sichanugrist*
19
20 You can now supply Proc, lambda, or anything that respond to #call in those
21 validations, and it will be called with current record as an argument.
22 That given proc or lambda must returns an object which respond to #include? for
23 InclusionValidator and ExclusionValidator, and returns a regular expression
24 object for FormatValidator.
25
26 * Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*
27
28 * ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*
29
30 * Add support for selectively enabling/disabling observers *Myron Marston*
31
32
33 ## Rails 3.0.7 (April 18, 2011) ##
34
35 * No changes.
36
37
38 * Rails 3.0.6 (April 5, 2011)
39
40 * Fix when database column name has some symbolic characters (e.g. Oracle CASE# VARCHAR2(20)) #5818 #6850 *Robert Pankowecki, Santiago Pastorino*
41
42 * Fix length validation for fixnums #6556 *Andriy Tyurnikov*
43
44 * Fix i18n key collision with namespaced models #6448 *yves.senn*
45
46
47 ## Rails 3.0.5 (February 26, 2011) ##
48
49 * No changes.
50
51
52 ## Rails 3.0.4 (February 8, 2011) ##
53
54 * No changes.
55
56
57 ## Rails 3.0.3 (November 16, 2010) ##
58
59 * No changes.
60
61
62 ## Rails 3.0.2 (November 15, 2010) ##
63
64 * No changes
65
66
67 ## Rails 3.0.1 (October 15, 2010) ##
68
69 * No Changes, just a version bump.
70
71
72 ## Rails 3.0.0 (August 29, 2010) ##
73
74 * Added ActiveModel::MassAssignmentSecurity *Eric Chapweske, Josh Kalderimis*
75
76 * JSON supports a custom root option: to_json(:root => 'custom') #4515 *Jatinder Singh*
77
78 * #new_record? and #destroyed? were removed from ActiveModel::Lint. Use
79 persisted? instead. A model is persisted if it's not a new_record? and it was
80 not destroyed? *MG*
81
82 * Added validations reflection in ActiveModel::Validations *JV*
83
84 Model.validators
85 Model.validators_on(:field)
86
87 * #to_key was added to ActiveModel::Lint so we can generate DOM IDs for
88 AMo objects with composite keys *MG*
89
90 * ActiveModel::Observer#add_observer!
91
92 It has a custom hook to define after_find that should really be in a
93 ActiveRecord::Observer subclass:
94
95 def add_observer!(klass)
96 klass.add_observer(self)
97 klass.class_eval 'def after_find() end' unless klass.respond_to?(:after_find)
98 end
99
100 * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 *DHH*
101
102 * Add validates_format_of :without => /regexp/ option. #430 *Elliot Winkler, Peer Allan*
103
104 Example :
105
106 validates_format_of :subdomain, :without => /www|admin|mail/
107
108 * Introduce validates_with to encapsulate attribute validations in a class. #2630 *Jeff Dean*
109
110 * Extracted from Active Record and Active Resource.
Something went wrong with that request. Please try again.