Skip to content
This repository
Browse code

Remove extra `end` in arel_table docs. [ci skip]

Introduced in 7ecfe3d
  • Loading branch information...
commit e3cc49cff779564615c7e9275113cbf907cf5494 1 parent 3d1b078
Carlos Antonio da Silva authored May 15, 2012

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

  1. 14  activerecord/lib/active_record/core.rb
14  activerecord/lib/active_record/core.rb
@@ -127,18 +127,16 @@ def ===(object)
127 127
         object.is_a?(self)
128 128
       end
129 129
 
130  
-      # Returns an instance of +Arel::Table+ loaded with the curent
131  
-      # table name
  130
+      # Returns an instance of +Arel::Table+ loaded with the curent table name.
132 131
       #
133 132
       #   class Post < ActiveRecord::Base
134 133
       #     scope :published_and_commented, published.and(self.arel_table[:comments_count].gt(0))
135  
-      #     end
136 134
       #   end
137 135
       def arel_table
138 136
         @arel_table ||= Arel::Table.new(table_name, arel_engine)
139 137
       end
140 138
 
141  
-      # Returns the Arel engine
  139
+      # Returns the Arel engine.
142 140
       def arel_engine
143 141
         @arel_engine ||= connection_handler.retrieve_connection_pool(self) ? self : active_record_super.arel_engine
144 142
       end
@@ -212,7 +210,7 @@ def init_with(coder)
212 210
 
213 211
       self
214 212
     end
215  
-    
  213
+
216 214
     ##
217 215
     # :method: clone
218 216
     # Identical to Ruby's clone method.  This is a "shallow" copy.  Be warned that your attributes are not copied.
@@ -227,9 +225,9 @@ def init_with(coder)
227 225
     #
228 226
     #   user.object_id == new_user.object_id            # => false
229 227
     #   user.name.object_id == new_user.name.object_id  # => true
230  
-    # 
  228
+    #
231 229
     #   user.name.object_id == user.dup.name.object_id  # => false
232  
-    
  230
+
233 231
     ##
234 232
     # :method: dup
235 233
     # Duped objects have no id assigned and are treated as new records. Note
@@ -238,7 +236,7 @@ def init_with(coder)
238 236
     # specific and is therefore left to the application to implement according
239 237
     # to its need.
240 238
     # The dup method does not preserve the timestamps (created|updated)_(at|on).
241  
-    
  239
+
242 240
     ##
243 241
     def initialize_dup(other) # :nodoc:
244 242
       cloned_attributes = other.clone_attributes(:read_attribute_before_type_cast)

1 note on commit e3cc49c

Vijay Dev
Collaborator

Thanks :heart:

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