Skip to content
This repository
Browse code

fix bad format [ci skip]

  • Loading branch information...
commit 0631b2631601b30d8fedaefb7388da8b42c83977 1 parent 92a6cf0
Michael de Silva authored

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  activemodel/lib/active_model/model.rb
14  activemodel/lib/active_model/model.rb
@@ -2,11 +2,11 @@ module ActiveModel
2 2
 
3 3
   # == Active Model Basic Model
4 4
   #
5  
-  # Includes the required interface for an object to interact with +ActionPack+,
6  
-  # using different +ActiveModel+ modules. It includes model name introspections,
  5
+  # Includes the required interface for an object to interact with <tt>ActionPack</tt>,
  6
+  # using different <tt>ActiveModel</tt> modules. It includes model name introspections,
7 7
   # conversions, translations and validations. Besides that, it allows you to
8 8
   # initialize the object with a hash of attributes, pretty much like
9  
-  # +ActiveRecord+ does.
  9
+  # <tt>ActiveRecord</tt> does.
10 10
   #
11 11
   # A minimal implementation could be:
12 12
   #
@@ -19,8 +19,8 @@ module ActiveModel
19 19
   #   person.name # => 'bob'
20 20
   #   person.age # => 18
21 21
   #
22  
-  # Note that, by default, +ActiveModel::Model+ implements +persisted?+ to
23  
-  # return +false+, which is the most common case. You may want to override it
  22
+  # Note that, by default, <tt>ActiveModel::Model</tt> implements <tt>persisted?</tt> to
  23
+  # return <tt>false</tt>, which is the most common case. You may want to override it
24 24
   # in your class to simulate a different scenario:
25 25
   #
26 26
   #   class Person
@@ -35,7 +35,7 @@ module ActiveModel
35 35
   #   person = Person.new(:id => 1, :name => 'bob')
36 36
   #   person.persisted? # => true
37 37
   #
38  
-  # Also, if for some reason you need to run code on +initialize+, make sure you
  38
+  # Also, if for some reason you need to run code on <tt>initialize</tt>, make sure you
39 39
   # call super if you want the attributes hash initialization to happen.
40 40
   #
41 41
   #   class Person
@@ -52,7 +52,7 @@ module ActiveModel
52 52
   #   person.omg # => true
53 53
   #
54 54
   # For more detailed information on other functionalities available, please refer
55  
-  # to the specific modules included in +ActiveModel::Model+ (see below).
  55
+  # to the specific modules included in <tt>ActiveModel::Model</tt> (see below).
56 56
   module Model
57 57
     def self.included(base)
58 58
       base.class_eval do

0 notes on commit 0631b26

Please sign in to comment.
Something went wrong with that request. Please try again.