Skip to content
This repository
Browse code

fix nodocs

  • Loading branch information...
commit 94dcbe8115810b4545ca8011e6c1e5386cb1c842 1 parent 120861c
Vijay Dev authored December 09, 2011
2  activerecord/lib/active_record/associations.rb
@@ -70,7 +70,7 @@ def initialize(owner, reflection)
70 70
     end
71 71
   end
72 72
 
73  
-  class HasManyThroughNestedAssociationsAreReadonly < ActiveRecordError #:nodoc
  73
+  class HasManyThroughNestedAssociationsAreReadonly < ActiveRecordError #:nodoc:
74 74
     def initialize(owner, reflection)
75 75
       super("Cannot modify association '#{owner.class.name}##{reflection.name}' because it goes through more than one other association.")
76 76
     end
6  activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -130,7 +130,7 @@ def supports_statement_cache?
130 130
       #
131 131
       # In order to get around this problem, #transaction will emulate the effect
132 132
       # of nested transactions, by using savepoints:
133  
-      # http://dev.mysql.com/doc/refman/5.0/en/savepoints.html
  133
+      # http://dev.mysql.com/doc/refman/5.0/en/savepoint.html
134 134
       # Savepoints are supported by MySQL and PostgreSQL, but not SQLite3.
135 135
       #
136 136
       # It is safe to call this method if a database transaction is already open,
@@ -341,7 +341,7 @@ def delete_sql(sql, name = nil)
341 341
 
342 342
         # Send a rollback message to all records after they have been rolled back. If rollback
343 343
         # is false, only rollback records since the last save point.
344  
-        def rollback_transaction_records(rollback) #:nodoc
  344
+        def rollback_transaction_records(rollback)
345 345
           if rollback
346 346
             records = @_current_transaction_records.flatten
347 347
             @_current_transaction_records.clear
@@ -361,7 +361,7 @@ def rollback_transaction_records(rollback) #:nodoc
361 361
         end
362 362
 
363 363
         # Send a commit message to all records after they have been committed.
364  
-        def commit_transaction_records #:nodoc
  364
+        def commit_transaction_records
365 365
           records = @_current_transaction_records.flatten
366 366
           @_current_transaction_records.clear
367 367
           unless records.blank?
10  activerecord/lib/active_record/transactions.rb
@@ -301,7 +301,7 @@ def with_transaction_returning_status
301 301
     protected
302 302
 
303 303
     # Save the new record state and id of a record so it can be restored later if a transaction fails.
304  
-    def remember_transaction_record_state #:nodoc
  304
+    def remember_transaction_record_state #:nodoc:
305 305
       @_start_transaction_state ||= {}
306 306
       @_start_transaction_state[:id] = id if has_attribute?(self.class.primary_key)
307 307
       unless @_start_transaction_state.include?(:new_record)
@@ -314,7 +314,7 @@ def remember_transaction_record_state #:nodoc
314 314
     end
315 315
 
316 316
     # Clear the new record state and id of a record.
317  
-    def clear_transaction_record_state #:nodoc
  317
+    def clear_transaction_record_state #:nodoc:
318 318
       if defined?(@_start_transaction_state)
319 319
         @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
320 320
         remove_instance_variable(:@_start_transaction_state) if @_start_transaction_state[:level] < 1
@@ -322,7 +322,7 @@ def clear_transaction_record_state #:nodoc
322 322
     end
323 323
 
324 324
     # Restore the new record state and id of a record that was previously saved by a call to save_record_state.
325  
-    def restore_transaction_record_state(force = false) #:nodoc
  325
+    def restore_transaction_record_state(force = false) #:nodoc:
326 326
       if defined?(@_start_transaction_state)
327 327
         @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
328 328
         if @_start_transaction_state[:level] < 1
@@ -341,12 +341,12 @@ def restore_transaction_record_state(force = false) #:nodoc
341 341
     end
342 342
 
343 343
     # Determine if a record was created or destroyed in a transaction. State should be one of :new_record or :destroyed.
344  
-    def transaction_record_state(state) #:nodoc
  344
+    def transaction_record_state(state) #:nodoc:
345 345
       @_start_transaction_state[state] if defined?(@_start_transaction_state)
346 346
     end
347 347
 
348 348
     # Determine if a transaction included an action for :create, :update, or :destroy. Used in filtering callbacks.
349  
-    def transaction_include_action?(action) #:nodoc
  349
+    def transaction_include_action?(action) #:nodoc:
350 350
       case action
351 351
       when :create
352 352
         transaction_record_state(:new_record)
2  activesupport/lib/active_support/core_ext/string/multibyte.rb
@@ -44,7 +44,7 @@ def mb_chars
44 44
       end
45 45
     end
46 46
 
47  
-    def is_utf8? #:nodoc
  47
+    def is_utf8?
48 48
       case encoding
49 49
       when Encoding::UTF_8
50 50
         valid_encoding?
2  railties/lib/rails/engine/configuration.rb
@@ -30,7 +30,7 @@ def middleware
30 30
       #
31 31
       #   config.generators.colorize_logging = false
32 32
       #
33  
-      def generators #:nodoc
  33
+      def generators #:nodoc:
34 34
         @generators ||= Rails::Configuration::Generators.new
35 35
         yield(@generators) if block_given?
36 36
         @generators

0 notes on commit 94dcbe8

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