Module: Streakable::InstanceMethods
- Defined in:
- lib/streakable.rb
Instance Method Summary collapse
Instance Method Details
#streak(association, column = :created_at, except_today: false) ⇒ Object
12 13 14 |
# File 'lib/streakable.rb', line 12 def streak(association, column=:created_at, except_today: false) Streak.new(self, association, column, except_today).length end |