Skip to content

Commit 566a056

Browse files
committed
Fix indentation [ci skip]
1 parent 2fb658d commit 566a056

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

guides/source/3_2_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Action Pack
295295
```ruby
296296
@items.each do |item|
297297
content_tag_for(:li, item) do
298-
Title: <%= item.title %>
298+
Title: <%= item.title %>
299299
end
300300
end
301301
```

guides/source/active_job_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class GuestsCleanupJob < ApplicationJob
379379
queue_as :default
380380

381381
rescue_from(ActiveRecord::RecordNotFound) do |exception|
382-
# Do something with the exception
382+
# Do something with the exception
383383
end
384384

385385
def perform

guides/source/active_support_core_extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ Extensions to `BigDecimal`
19891989
The method `to_s` provides a default specifier of "F". This means that a simple call to `to_s` will result in floating point representation instead of engineering notation:
19901990

19911991
```ruby
1992-
BigDecimal.new(5.00, 6).to_s # => "5.0"
1992+
BigDecimal.new(5.00, 6).to_s # => "5.0"
19931993
```
19941994

19951995
and that symbol specifiers are also supported:
@@ -3641,7 +3641,7 @@ Durations can be added to and subtracted from time objects:
36413641
now = Time.current
36423642
# => Mon, 09 Aug 2010 23:20:05 UTC +00:00
36433643
now + 1.year
3644-
# => Tue, 09 Aug 2011 23:21:11 UTC +00:00
3644+
# => Tue, 09 Aug 2011 23:21:11 UTC +00:00
36453645
now - 1.week
36463646
# => Mon, 02 Aug 2010 23:21:11 UTC +00:00
36473647
```

guides/source/association_basics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -663,11 +663,11 @@ By default, associations look for objects only within the current module's scope
663663
module MyApplication
664664
module Business
665665
class Supplier < ApplicationRecord
666-
has_one :account
666+
has_one :account
667667
end
668668

669669
class Account < ApplicationRecord
670-
belongs_to :supplier
670+
belongs_to :supplier
671671
end
672672
end
673673
end
@@ -679,13 +679,13 @@ This will work fine, because both the `Supplier` and the `Account` class are def
679679
module MyApplication
680680
module Business
681681
class Supplier < ApplicationRecord
682-
has_one :account
682+
has_one :account
683683
end
684684
end
685685

686686
module Billing
687687
class Account < ApplicationRecord
688-
belongs_to :supplier
688+
belongs_to :supplier
689689
end
690690
end
691691
end
@@ -697,14 +697,14 @@ To associate a model with a model in a different namespace, you must specify the
697697
module MyApplication
698698
module Business
699699
class Supplier < ApplicationRecord
700-
has_one :account,
700+
has_one :account,
701701
class_name: "MyApplication::Billing::Account"
702702
end
703703
end
704704

705705
module Billing
706706
class Account < ApplicationRecord
707-
belongs_to :supplier,
707+
belongs_to :supplier,
708708
class_name: "MyApplication::Business::Supplier"
709709
end
710710
end

guides/source/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ each of the seven default actions, you can use the following command:
928928
$ bin/rails generate test_unit:scaffold article
929929
...
930930
invoke test_unit
931-
create test/controllers/articles_controller_test.rb
931+
create test/controllers/articles_controller_test.rb
932932
...
933933
```
934934

0 commit comments

Comments
 (0)