aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-09-27 10:09:10 +0530
committerGitHub <noreply@github.com>2016-09-27 10:09:10 +0530
commit7750b049eedfc639e3d5b8f06b51743d71962dd2 (patch)
tree855612a3c300dfc1c65d6c8aa79fbf09971dd1bc /activesupport
parent56b3849316b9c4cf4423ef8de30cbdc1b7e0f7af (diff)
parent34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66 (diff)
downloadrails-7750b049eedfc639e3d5b8f06b51743d71962dd2.tar.gz
rails-7750b049eedfc639e3d5b8f06b51743d71962dd2.tar.bz2
rails-7750b049eedfc639e3d5b8f06b51743d71962dd2.zip
Merge pull request #26636 from y-yagi/fix_typo_in_all_week
fix typo in `DateAndTime::Calculations#all_week` doc [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/date_and_time/calculations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
index 792076a449..c614f14289 100644
--- a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
@@ -300,7 +300,7 @@ module DateAndTime
end
# Returns a Range representing the whole week of the current date/time.
- # Week starts on start_day, default is <tt>Date.week_start</tt> or <tt>config.week_start</tt> when set.
+ # Week starts on start_day, default is <tt>Date.beginning_of_week</tt> or <tt>config.beginning_of_week</tt> when set.
def all_week(start_day = Date.beginning_of_week)
beginning_of_week(start_day)..end_of_week(start_day)
end