File tree Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change
1
+ * Include ` ActiveModel::API ` in ` ActiveRecord::Base `
2
+
3
+ * Sean Doyle*
4
+
1
5
* Ensure ` #signed_id ` outputs ` url_safe ` strings.
2
6
3
7
* Jason Meller*
Original file line number Diff line number Diff line change 2
2
3
3
module ActiveRecord
4
4
module AttributeAssignment
5
- include ActiveModel ::AttributeAssignment
6
-
7
5
private
8
6
def _assign_attributes ( attributes )
9
7
multi_parameter_attributes = nested_parameter_attributes = nil
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ module ActiveRecord # :nodoc:
280
280
# So it's possible to assign a logger to the class through <tt>Base.logger=</tt> which will then be used by all
281
281
# instances in the current object space.
282
282
class Base
283
- extend ActiveModel ::Naming
283
+ include ActiveModel ::API
284
284
285
285
extend ActiveSupport ::Benchmarkable
286
286
extend ActiveSupport ::DescendantsTracker
@@ -304,7 +304,6 @@ class Base
304
304
include Scoping
305
305
include Sanitization
306
306
include AttributeAssignment
307
- include ActiveModel ::Conversion
308
307
include Integration
309
308
include Validations
310
309
include CounterCache
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ def initialize(attributes = nil)
428
428
init_internals
429
429
initialize_internals_callback
430
430
431
- assign_attributes ( attributes ) if attributes
431
+ super
432
432
433
433
yield self if block_given?
434
434
_run_initialize_callbacks
Original file line number Diff line number Diff line change 2
2
3
3
module ActiveRecord
4
4
module Translation
5
- include ActiveModel ::Translation
6
-
7
5
# Set the lookup ancestors for ActiveModel.
8
6
def lookup_ancestors # :nodoc:
9
7
klass = self
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ def initialize(record = nil)
39
39
# {new_record?}[rdoc-ref:Persistence#new_record?].
40
40
module Validations
41
41
extend ActiveSupport ::Concern
42
- include ActiveModel ::Validations
43
42
44
43
# The validation process on save can be skipped by passing <tt>validate: false</tt>.
45
44
# The validation context can be changed by passing <tt>context: context</tt>.
You can’t perform that action at this time.
0 commit comments