mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-02 02:50:16 +01:00
Rename RecurringTodo#inc_occurences to increment_occurrences
This clarifies the method name and fixes a typo.
This commit is contained in:
parent
1431bef1a9
commit
036c34f266
3 changed files with 4 additions and 4 deletions
|
|
@ -704,7 +704,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def inc_occurences
|
||||
def increment_occurrences
|
||||
self.occurences_count += 1
|
||||
self.save
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue