activemodel 3.0.0.rc2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,25 +1,9 @@
1
- *Rails 3.0.0 [release candidate 2] (August 23rd, 2010)*
2
-
3
- * No material changes (see http://github.com/rails/rails/compare/v3.0.0_RC...v3.0.0_RC2 for gory details)
4
-
5
-
6
- *Rails 3.0.0 [release candidate] (July 26th, 2010)*
1
+ *Rails 3.0.0 (August 29, 2010)*
7
2
 
8
3
  * Added ActiveModel::MassAssignmentSecurity [Eric Chapweske, Josh Kalderimis]
9
4
 
10
-
11
- *Rails 3.0.0 [beta 4] (June 8th, 2010)*
12
-
13
5
  * JSON supports a custom root option: to_json(:root => 'custom') #4515 [Jatinder Singh]
14
6
 
15
-
16
- *Rails 3.0.0 [beta 3] (April 13th, 2010)*
17
-
18
- * No changes
19
-
20
-
21
- *Rails 3.0.0 [beta 2] (April 1st, 2010)*
22
-
23
7
  * #new_record? and #destroyed? were removed from ActiveModel::Lint. Use
24
8
  persisted? instead. A model is persisted if it's not a new_record? and it was
25
9
  not destroyed? [MG]
@@ -32,9 +16,6 @@
32
16
  * #to_key was added to ActiveModel::Lint so we can generate DOM IDs for
33
17
  AMo objects with composite keys [MG]
34
18
 
35
-
36
- *Rails 3.0.0 [beta 1] (February 4, 2010)*
37
-
38
19
  * ActiveModel::Observer#add_observer!
39
20
 
40
21
  It has a custom hook to define after_find that should really be in a
@@ -283,8 +283,8 @@ module ActiveModel
283
283
 
284
284
  if options[:default]
285
285
  ActiveSupport::Deprecation.warn \
286
- "ActiveModel::Errors#generate_message(attributes, custom_message) has been deprecated.\n" +
287
- "Use ActiveModel::Errors#generate_message(attributes, :message => 'your message') instead."
286
+ "Giving :default as validation option to errors.add has been deprecated.\n" +
287
+ "Please use :message instead."
288
288
  options[:message] = options.delete(:default)
289
289
  end
290
290
 
@@ -93,7 +93,7 @@ module ActiveModel
93
93
 
94
94
  # == Active Model Observers
95
95
  #
96
- # Observer classes respond to lifecycle callbacks to implement trigger-like
96
+ # Observer classes respond to life cycle callbacks to implement trigger-like
97
97
  # behavior outside the original class. This is a great way to reduce the
98
98
  # clutter that normally comes when the model class is burdened with
99
99
  # functionality that doesn't pertain to the core responsibility of the
@@ -3,8 +3,7 @@ module ActiveModel
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "rc2"
7
6
 
8
- STRING = [MAJOR, MINOR, TINY, BUILD].join('.')
7
+ STRING = [MAJOR, MINOR, TINY].join('.')
9
8
  end
10
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemodel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940607
5
- prerelease: true
4
+ hash: 7
5
+ prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 0
10
- - rc2
11
- version: 3.0.0.rc2
10
+ version: 3.0.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - David Heinemeier Hansson
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-08-23 00:00:00 -05:00
18
+ date: 2010-08-29 00:00:00 -05:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -27,13 +26,12 @@ dependencies:
27
26
  requirements:
28
27
  - - "="
29
28
  - !ruby/object:Gem::Version
30
- hash: 977940607
29
+ hash: 7
31
30
  segments:
32
31
  - 3
33
32
  - 0
34
33
  - 0
35
- - rc2
36
- version: 3.0.0.rc2
34
+ version: 3.0.0
37
35
  type: :runtime
38
36
  version_requirements: *id001
39
37
  - !ruby/object:Gem::Dependency
@@ -137,14 +135,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
135
  required_rubygems_version: !ruby/object:Gem::Requirement
138
136
  none: false
139
137
  requirements:
140
- - - ">"
138
+ - - ">="
141
139
  - !ruby/object:Gem::Version
142
- hash: 25
140
+ hash: 3
143
141
  segments:
144
- - 1
145
- - 3
146
- - 1
147
- version: 1.3.1
142
+ - 0
143
+ version: "0"
148
144
  requirements: []
149
145
 
150
146
  rubyforge_project: activemodel