lib/rasti/form.rb in rasti-form-3.1.0 vs lib/rasti/form.rb in rasti-form-3.1.1

- old
+ new

@@ -16,14 +16,14 @@ def [](attributes) Class.new(self) do attributes.each do |name, type, options={}| attribute name, type, options end - - def self.inherited(subclass) - subclass.instance_variable_set :@attributes, attributes.dup - end end + end + + def inherited(subclass) + subclass.instance_variable_set :@attributes, attributes.dup end def attribute(name, type, options={}) attributes[name.to_sym] = options.merge(type: type) attr_reader name \ No newline at end of file