mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: lint against Layout/EmptyLineBetweenDefs (#24914)
This commit is contained in:
@@ -206,6 +206,7 @@ module HasCustomFields
|
||||
|
||||
class NotPreloadedError < StandardError
|
||||
end
|
||||
|
||||
class PreloadedProxy
|
||||
def initialize(preloaded, klass_with_custom_fields)
|
||||
@preloaded = preloaded
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
class DiscourseConnect < DiscourseConnectBase
|
||||
class BlankExternalId < StandardError
|
||||
end
|
||||
|
||||
class BannedExternalId < StandardError
|
||||
end
|
||||
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
class Invite < ActiveRecord::Base
|
||||
class UserExists < StandardError
|
||||
end
|
||||
|
||||
class RedemptionFailed < StandardError
|
||||
end
|
||||
|
||||
class ValidationFailed < StandardError
|
||||
end
|
||||
|
||||
|
||||
@@ -250,6 +250,7 @@ class Tag < ActiveRecord::Base
|
||||
def sanitize_description
|
||||
self.description = sanitize_field(self.description) if description_changed?
|
||||
end
|
||||
|
||||
def name_validator
|
||||
errors.add(:name, :invalid) if name.present? && RESERVED_TAGS.include?(self.name.strip.downcase)
|
||||
end
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
class Topic < ActiveRecord::Base
|
||||
class UserExists < StandardError
|
||||
end
|
||||
|
||||
class NotAllowed < StandardError
|
||||
end
|
||||
include RateLimiter::OnCreateRecord
|
||||
|
||||
Reference in New Issue
Block a user