lib/avo/base_resource.rb in avo-1.24.1 vs lib/avo/base_resource.rb in avo-1.24.2

- old
+ new

@@ -12,10 +12,11 @@ delegate :resource_path, to: :view_context delegate :resources_path, to: :view_context attr_accessor :view attr_accessor :model + attr_accessor :reflection attr_accessor :user attr_accessor :params class_attribute :id, default: :id class_attribute :title, default: :id @@ -474,8 +475,12 @@ nil end def form_scope model_class.base_class.to_s.underscore.downcase + end + + def ordering_host(**args) + Avo::Hosts::Ordering.new resource: self, options: self.class.ordering, **args end end end