Skip to content

Commit d45cacc

Browse files
committed
Use <plain> instead of <text>
1 parent fe0b52b commit d45cacc

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

railties/guides/source/initialization.textile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ The ActiveRecord Railtie takes care of hooking ActiveRecord into Rails. This dep
844844

845845
TODO: Quotify.
846846

847-
<text>
847+
<plain>
848848
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:
849849

850850
"An object that wraps a row in a database table or view, encapsulates
@@ -854,7 +854,7 @@ TODO: Quotify.
854854
lack of associations and inheritance. By adding a simple domain language-like set of macros to describe
855855
the former and integrating the Single Table Inheritance pattern for the latter, Active Record narrows the
856856
gap of functionality between the data mapper and active record approach.
857-
</text>
857+
</plain>
858858

859859
h5. +require "active_record/railtie"+
860860

@@ -989,13 +989,13 @@ This Railtie is +require+'d by ActiveRecord's Railtie.
989989

990990
From the ActiveModel readme:
991991

992-
<text>
992+
<plain>
993993
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.
994994

995995
Active Model is a solution for this problem.
996996

997997
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>
999999

10001000

10011001
h5. +require "active_model/railtie"+
@@ -1249,9 +1249,9 @@ In _encoding.rb_ it's used to define a constant that's now been deprecated:
12491249

12501250
Now when you reference +ActiveSupport::JSON::CircularReferenceError+ you'll receive a warning:
12511251

1252-
<text>
1252+
<plain>
12531253
ActiveSupport::JSON::CircularReferenceError is deprecated! Use Encoding::CircularReferenceError instead.
1254-
</text>
1254+
</plain>
12551255

12561256
h5. +require "active_support/deprecation"+
12571257

@@ -2268,6 +2268,12 @@ The first method to be called here is +autorequires_for_groups+:
22682268
end
22692269
</ruby>
22702270

2271+
The +specs_for+ method here:
2272+
2273+
<ruby>
2274+
2275+
</ruby>
2276+
22712277

22722278
h3. Firing it up!
22732279

0 commit comments

Comments
 (0)