lib/iron_bank/schema.rb in iron_bank-4.0.2 vs lib/iron_bank/schema.rb in iron_bank-4.1.0
- old
+ new
@@ -29,10 +29,14 @@
data[object.name] = object
end
end
def self.reset
- @import = nil
+ remove_instance_variable(:@import)
+
+ IronBank::Resources.constants.each do |resource|
+ IronBank::Resources.const_get(resource).reset
+ end
end
def self.excluded_fields
@excluded_fields ||= begin
IronBank::Resources.constants.each.with_object({}) do |resource, fields|