mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
removed warning about already existing constants
This commit is contained in:
parent
232f5bd743
commit
1a38f66c7e
@ -2,7 +2,7 @@
|
|||||||
module Plugin; end
|
module Plugin; end
|
||||||
|
|
||||||
class Plugin::Metadata
|
class Plugin::Metadata
|
||||||
FIELDS = [:name, :about, :version, :authors]
|
FIELDS ||= [:name, :about, :version, :authors]
|
||||||
attr_accessor *FIELDS
|
attr_accessor *FIELDS
|
||||||
|
|
||||||
def self.parse(text)
|
def self.parse(text)
|
||||||
|
@ -5,7 +5,7 @@ class TextSentinel
|
|||||||
|
|
||||||
attr_accessor :text
|
attr_accessor :text
|
||||||
|
|
||||||
ENTROPY_SCALE = 0.7
|
ENTROPY_SCALE ||= 0.7
|
||||||
|
|
||||||
def initialize(text, opts=nil)
|
def initialize(text, opts=nil)
|
||||||
@opts = opts || {}
|
@opts = opts || {}
|
||||||
|
Loading…
Reference in New Issue
Block a user