mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: update syntax tree to latest (#24623)
update format to latest syntax tree
This commit is contained in:
@@ -12,10 +12,10 @@ class ApiKey < ActiveRecord::Base
|
||||
scope :revoked, -> { where("revoked_at IS NOT NULL") }
|
||||
|
||||
scope :with_key,
|
||||
->(key) {
|
||||
->(key) do
|
||||
hashed = self.hash_key(key)
|
||||
where(key_hash: hashed)
|
||||
}
|
||||
end
|
||||
|
||||
validates :description, length: { maximum: 255 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user