Skip to content

Business intelligence made simple

Updated indentation [skip ci]

Andrew Kane202b6b2d1746
diff --git a/app/models/blazer/check.rb b/app/models/blazer/check.rb
index 44b9700f..4e856869 100644
--- a/app/models/blazer/check.rb
+++ b/app/models/blazer/check.rb
@@ -68,28 +68,28 @@ module Blazer
private
- def set_state
- self.state ||= "new"
- end
+ def set_state
+ self.state ||= "new"
+ end
- # TODO rename
- def fix_emails
- Blazer.notifiers.each do |notifier|
- notifier.before_validation(self) if notifier.respond_to?(:before_validation)
- end
+ # TODO rename
+ def fix_emails
+ Blazer.notifiers.each do |notifier|
+ notifier.before_validation(self) if notifier.respond_to?(:before_validation)
end
+ end
- # TODO rename
- def validate_emails
- Blazer.notifiers.each do |notifier|
- notifier.validate(self) if notifier.respond_to?(:validate)
- end
+ # TODO rename
+ def validate_emails
+ Blazer.notifiers.each do |notifier|
+ notifier.validate(self) if notifier.respond_to?(:validate)
end
+ end
- def validate_variables
- if query.variables.any?
- errors.add(:base, "Query can't have variables")
- end
+ def validate_variables
+ if query.variables.any?
+ errors.add(:base, "Query can't have variables")
end
+ end
end
end