Skip to content
Newer
Older
100644 167 lines (85 sloc) 4.71 KB
534dc4c @bogdan AM::Errors: allow :full_messages parameter for #as_json
bogdan authored Feb 17, 2012
1 * `AM::Errors#to_json`: support `:full_messages` parameter *Bogdan Gusiev*
2
a17d047 @josevalim Trim down Active Model API by removing valid? and errors.full_messages
josevalim authored Feb 7, 2012
3 * Trim down Active Model API by removing `valid?` and `errors.full_messages` *José Valim*
4
152a393 Update changelogs with rails 3.0-stable branch info
Paco Guzman authored Dec 18, 2011
5 ## Rails 3.2.1 (January 26, 2012) ##
6
7 * No changes.
8
6d426b1 @claudiob Add release date of Rails 3.2.0 to documentation
claudiob authored Jan 26, 2012
9 ## Rails 3.2.0 (January 20, 2012) ##
696d01f @josevalim Add docs to serializers. Update CHANGELOGs.
josevalim authored Nov 25, 2011
10
8df787d @jonleighton Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`
jonleighton authored Nov 29, 2011
11 * Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`, because this only existed to
12 support methods like `set_table_name` in Active Record, which are themselves being deprecated.
13
14 *Jon Leighton*
15
696d01f @josevalim Add docs to serializers. Update CHANGELOGs.
josevalim authored Nov 25, 2011
16 * Add ActiveModel::Errors#added? to check if a specific error has been added *Martin Svalin*
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored Nov 4, 2011
17
18 * Add ability to define strict validation(with :strict => true option) that always raises exception when fails *Bogdan Gusiev*
19
20 * Deprecate "Model.model_name.partial_path" in favor of "model.to_partial_path" *Grant Hutchins, Peter Jaros*
21
22 * Provide mass_assignment_sanitizer as an easy API to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior *Bogdan Gusiev*
23
152a393 Update changelogs with rails 3.0-stable branch info
Paco Guzman authored Dec 18, 2011
24 ## Rails 3.1.3 (November 20, 2011) ##
25
26 * No changes
27
28 ## Rails 3.1.2 (November 18, 2011) ##
29
30 * No changes
31
32 ## Rails 3.1.1 (October 7, 2011) ##
33
34 * Remove hard dependency on bcrypt-ruby to avoid make ActiveModel dependent on a binary library.
35 You must add the gem explicitly to your Gemfile if you want use ActiveModel::SecurePassword:
36
37 gem 'bcrypt-ruby', '~> 3.0.0'
38
39 See GH #2687. *Guillermo Iguaran*
40
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored Nov 4, 2011
41 ## Rails 3.1.0 (August 30, 2011) ##
42
43 * Alternate I18n namespace lookup is no longer supported.
44 Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*
45
46 * attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*
47
48 * Add support for proc or lambda as an option for InclusionValidator,
49 ExclusionValidator, and FormatValidator *Prem Sichanugrist*
50
51 You can now supply Proc, lambda, or anything that respond to #call in those
52 validations, and it will be called with current record as an argument.
53 That given proc or lambda must returns an object which respond to #include? for
54 InclusionValidator and ExclusionValidator, and returns a regular expression
55 object for FormatValidator.
56
57 * Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*
58
59 * ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*
60
61 * Add support for selectively enabling/disabling observers *Myron Marston*
62
63
152a393 Update changelogs with rails 3.0-stable branch info
Paco Guzman authored Dec 18, 2011
64 ## Rails 3.0.12 (unreleased) ##
65
66 * No changes.
67
68
69 ## Rails 3.0.11 (November 18, 2011) ##
70
71 * No changes.
72
73
74 ## Rails 3.0.10 (August 16, 2011) ##
75
76 * No changes.
77
78
79 ## Rails 3.0.9 (June 16, 2011) ##
80
81 * No changes.
82
83
84 ## Rails 3.0.8 (June 7, 2011) ##
85
86 * No changes.
87
88
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored Nov 4, 2011
89 ## Rails 3.0.7 (April 18, 2011) ##
90
91 * No changes.
92
93
152a393 Update changelogs with rails 3.0-stable branch info
Paco Guzman authored Dec 18, 2011
94 ## Rails 3.0.6 (April 5, 2011) ##
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored Nov 4, 2011
95
96 * Fix when database column name has some symbolic characters (e.g. Oracle CASE# VARCHAR2(20)) #5818 #6850 *Robert Pankowecki, Santiago Pastorino*
97
98 * Fix length validation for fixnums #6556 *Andriy Tyurnikov*
99
100 * Fix i18n key collision with namespaced models #6448 *yves.senn*
101
102
103 ## Rails 3.0.5 (February 26, 2011) ##
104
105 * No changes.
106
107
108 ## Rails 3.0.4 (February 8, 2011) ##
109
110 * No changes.
111
112
113 ## Rails 3.0.3 (November 16, 2010) ##
114
115 * No changes.
116
117
118 ## Rails 3.0.2 (November 15, 2010) ##
119
120 * No changes
121
122
123 ## Rails 3.0.1 (October 15, 2010) ##
124
125 * No Changes, just a version bump.
126
127
128 ## Rails 3.0.0 (August 29, 2010) ##
129
130 * Added ActiveModel::MassAssignmentSecurity *Eric Chapweske, Josh Kalderimis*
131
132 * JSON supports a custom root option: to_json(:root => 'custom') #4515 *Jatinder Singh*
133
134 * #new_record? and #destroyed? were removed from ActiveModel::Lint. Use
135 persisted? instead. A model is persisted if it's not a new_record? and it was
136 not destroyed? *MG*
137
138 * Added validations reflection in ActiveModel::Validations *JV*
139
140 Model.validators
141 Model.validators_on(:field)
142
143 * #to_key was added to ActiveModel::Lint so we can generate DOM IDs for
144 AMo objects with composite keys *MG*
145
146 * ActiveModel::Observer#add_observer!
147
148 It has a custom hook to define after_find that should really be in a
149 ActiveRecord::Observer subclass:
150
151 def add_observer!(klass)
152 klass.add_observer(self)
153 klass.class_eval 'def after_find() end' unless klass.respond_to?(:after_find)
154 end
155
156 * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 *DHH*
157
158 * Add validates_format_of :without => /regexp/ option. #430 *Elliot Winkler, Peer Allan*
159
160 Example :
161
162 validates_format_of :subdomain, :without => /www|admin|mail/
163
164 * Introduce validates_with to encapsulate attribute validations in a class. #2630 *Jeff Dean*
165
166 * Extracted from Active Record and Active Resource.
Something went wrong with that request. Please try again.