mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 02:20:16 +01:00
occurence -> occurrence
This commit is contained in:
parent
d1cd4b68eb
commit
d480569629
14 changed files with 50 additions and 44 deletions
|
|
@ -12,7 +12,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
|
||||
include AASM
|
||||
aasm :column => :state do
|
||||
state :active, :initial => true, :before_enter => Proc.new { |t| t.occurences_count = 0 }
|
||||
state :active, :initial => true, :before_enter => Proc.new { |t| t.occurrences_count = 0 }
|
||||
state :completed, :before_enter => Proc.new { |t| t.completed_at = Time.zone.now }, :before_exit => Proc.new { |t| t.completed_at = nil }
|
||||
|
||||
event :complete do
|
||||
|
|
@ -131,7 +131,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def increment_occurrences
|
||||
self.occurences_count += 1
|
||||
self.occurrences_count += 1
|
||||
self.save
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue