Enable Style/RedundantSelf Rubocop cop
This cop checks for redundant uses of self. It supports autocorrection, so all the offenses where automatically solved. Closes #1373
This commit is contained in:
parent
444ceb8960
commit
4427f43bdf
11 changed files with 48 additions and 60 deletions
|
|
@ -35,7 +35,7 @@ class Venue < ActiveRecord::Base
|
|||
def notify_on_venue_changed?
|
||||
return false unless conference.try(:email_settings).try(:send_on_venue_updated)
|
||||
# do not notify unless the address changed
|
||||
return false unless self.name_changed? || self.street_changed? || self.city_changed? || self.country_changed?
|
||||
return false unless name_changed? || street_changed? || city_changed? || country_changed?
|
||||
# do not notify unless the mail content is set up
|
||||
(!conference.email_settings.venue_updated_subject.blank? && !conference.email_settings.venue_updated_body.blank?)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue