You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: railties/guides/source/initialization.textile
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -844,7 +844,7 @@ The ActiveRecord Railtie takes care of hooking ActiveRecord into Rails. This dep
844
844
845
845
TODO: Quotify.
846
846
847
-
<text>
847
+
<plain>
848
848
Active Record connects business objects and database tables to create a persistable domain model where logic and data are presented in one wrapping. It's an implementation of the object-relational mapping (ORM) pattern by the same name as described by Martin Fowler:
849
849
850
850
"An object that wraps a row in a database table or view, encapsulates
@@ -854,7 +854,7 @@ TODO: Quotify.
854
854
lack of associations and inheritance. By adding a simple domain language-like set of macros to describe
855
855
the former and integrating the Single Table Inheritance pattern for the latter, Active Record narrows the
856
856
gap of functionality between the data mapper and active record approach.
857
-
</text>
857
+
</plain>
858
858
859
859
h5. +require "active_record/railtie"+
860
860
@@ -989,13 +989,13 @@ This Railtie is +require+'d by ActiveRecord's Railtie.
989
989
990
990
From the ActiveModel readme:
991
991
992
-
<text>
992
+
<plain>
993
993
Prior to Rails 3.0, if a plugin or gem developer wanted to be able to have an object interact with Action Pack helpers, it was required to either copy chunks of code from Rails, or monkey patch entire helpers to make them handle objects that did not look like Active Record. This generated code duplication and fragile applications that broke on upgrades.
994
994
995
995
Active Model is a solution for this problem.
996
996
997
997
Active Model provides a known set of interfaces that your objects can implement to then present a common interface to the Action Pack helpers.
998
-
</text>
998
+
</plain>
999
999
1000
1000
1001
1001
h5. +require "active_model/railtie"+
@@ -1249,9 +1249,9 @@ In _encoding.rb_ it's used to define a constant that's now been deprecated:
1249
1249
1250
1250
Now when you reference +ActiveSupport::JSON::CircularReferenceError+ you'll receive a warning:
1251
1251
1252
-
<text>
1252
+
<plain>
1253
1253
ActiveSupport::JSON::CircularReferenceError is deprecated! Use Encoding::CircularReferenceError instead.
1254
-
</text>
1254
+
</plain>
1255
1255
1256
1256
h5. +require "active_support/deprecation"+
1257
1257
@@ -2268,6 +2268,12 @@ The first method to be called here is +autorequires_for_groups+:
0 commit comments