Remove unnecessary self

This commit is contained in:
CactusPuppy 2021-02-27 23:03:29 -08:00
parent 16f5ed6138
commit 626eaee761
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -349,7 +349,7 @@ class Event < ApplicationRecord
def word_limit(field) def word_limit(field)
# If we don't have an event type or the requested field, don't count # 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 len = self[field].split.size
# TODO: Use different limits for different text fields # TODO: Use different limits for different text fields