lib/avo/base_resource.rb in avo-2.31.0 vs lib/avo/base_resource.rb in avo-2.32.0

- old
+ new

@@ -53,10 +53,11 @@ class_attribute :after_update_path, default: :show class_attribute :record_selector, default: true class_attribute :keep_filters_panel_open, default: false class_attribute :extra_params class_attribute :link_to_child_resource, default: false + class_attribute :map_view class << self delegate :t, to: ::I18n delegate :context, to: ::Avo::App @@ -293,9 +294,10 @@ def available_view_types view_types = [:table] view_types << :grid if get_grid_fields.present? + view_types << :map if map_view.present? view_types end def attached_file_fields