مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Style/MissingRespondToMissing
هذا الالتزام موجود في:
@@ -25,6 +25,10 @@ module Postal
|
|||||||
@attributes[name.to_s]
|
@attributes[name.to_s]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def respond_to_missing?(name)
|
||||||
|
@attributes.has_key?(name.to_s)
|
||||||
|
end
|
||||||
|
|
||||||
def timestamp
|
def timestamp
|
||||||
@timestamp ||= @attributes["timestamp"] ? Time.zone.at(@attributes["timestamp"]) : nil
|
@timestamp ||= @attributes["timestamp"] ? Time.zone.at(@attributes["timestamp"]) : nil
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -185,6 +185,11 @@ module Postal
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def respond_to_missing?(name)
|
||||||
|
name = name.to_s.sub(/=\z/, "")
|
||||||
|
@attributes.has_key?(name.to_s)
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Has this message been persisted to the database yet?
|
# Has this message been persisted to the database yet?
|
||||||
#
|
#
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم