Remove unnecessary self
This commit is contained in:
parent
16f5ed6138
commit
626eaee761
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ class Event < ApplicationRecord
|
|||
|
||||
def word_limit(field)
|
||||
# If we don't have an event type or the requested field, don't count
|
||||
return unless event_type && self.respond_to?(field) && self[field]
|
||||
return unless event_type && respond_to?(field) && self[field]
|
||||
|
||||
len = self[field].split.size
|
||||
# TODO: Use different limits for different text fields
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue