lib/roda/endpoints/endpoint/class_interface.rb in roda-endpoints-0.2.0 vs lib/roda/endpoints/endpoint/class_interface.rb in roda-endpoints-0.3.0
- old
+ new
@@ -20,9 +20,10 @@
# @return [<Symbol>]
attr_accessor :verbs
# @param [Symbol] key
def define_attribute(key)
+ self.attributes ||= superclass.attributes
self.attributes += [key]
attr_reader key
end
# @return [Dry::Container]