lib/avo/base_resource.rb in avo-3.0.0.pre8 vs lib/avo/base_resource.rb in avo-3.0.0.pre9
- old
+ new
@@ -62,10 +62,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
# EXTRACT:
class_attribute :ordering
class << self
@@ -333,9 +334,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