lib/iron_bank/schema.rb in iron_bank-3.4.0 vs lib/iron_bank/schema.rb in iron_bank-4.0.0
- old
+ new
@@ -32,9 +32,18 @@
def self.reset
@import = nil
end
+ def self.excluded_fields
+ @excluded_fields ||= begin
+ IronBank::Resources.constants.each.with_object({}) do |resource, fields|
+ fields[resource.to_s] =
+ IronBank::Describe::ExcludedFields.call(object_name: resource)
+ end
+ end
+ end
+
def export
tenant.objects.compact.each do |object|
begin
object.export
rescue IronBank::Describe::Object::InvalidXML