lib/avo/base_resource.rb in avo-0.5.0.beta5 vs lib/avo/base_resource.rb in avo-0.5.0.beta6
- old
+ new
@@ -123,9 +123,11 @@
self.class.actions_loader.bag
end
def get_field_definitions
+ return [] if self.class.fields_loader.blank?
+
self.class.fields_loader.bag.map do |field|
field.hydrate(resource: self, panel_name: default_panel_name, user: user)
end
end