1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

style(rubocop): Style/MissingRespondToMissing

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 23:37:23 +00:00
الأصل 83ac764510
التزام ffcb707247
2 ملفات معدلة مع 9 إضافات و0 حذوفات

عرض الملف

@@ -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?
# #